Files
cmake/Tests/RunCMake/FileSet-SOURCES/FileSetFramework2.cmake
T
Marc Chevrier 2dda1f21ab FILE_SET: enhance FRAMEWORK compatibility checks
The SOURCES file set type is compatible with the FRAMEWORK target.
Add check at generation time.

Fixes: #27705
2026-04-13 17:55:36 +02:00

8 lines
156 B
CMake

enable_language(C)
add_library(lib1 SHARED)
target_sources(lib1
PUBLIC FILE_SET SOURCES FILES lib1.c
)
set_property(TARGET lib1 PROPERTY FRAMEWORK ON)