mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-13 06:31:29 +00:00
The SOURCES file set type is compatible with the FRAMEWORK target. Add check at generation time. Fixes: #27705
9 lines
195 B
CMake
9 lines
195 B
CMake
enable_language(C)
|
|
|
|
add_library(lib1 SHARED)
|
|
target_sources(lib1
|
|
PUBLIC FILE_SET SOURCES FILES lib1.c
|
|
FILE_SET HEADERS FILES lib1.h
|
|
)
|
|
set_property(TARGET lib1 PROPERTY FRAMEWORK ON)
|