mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03: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)
|