mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 03:11:08 -06:00
Check the complete include path for being a system include, not the derived framework search path. The code for Ninja and Makefile generators does exactly the same. Fixes: #23011
13 lines
544 B
CMake
13 lines
544 B
CMake
enable_language(C)
|
|
|
|
add_library(Example::Example SHARED IMPORTED)
|
|
set_target_properties(Example::Example PROPERTIES
|
|
FRAMEWORK 1
|
|
IMPORTED_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/subdir/Example.framework/Example.tbd"
|
|
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/subdir/Example.framework;${CMAKE_CURRENT_SOURCE_DIR}/subdir/Example.framework/Headers"
|
|
)
|
|
|
|
add_library(testcase FrameworkSystemIncludeTest.c)
|
|
target_compile_options(testcase PRIVATE "-Werror=#pragma-messages")
|
|
target_link_libraries(testcase PRIVATE Example::Example)
|