diff options
author | Brad King <brad.king@kitware.com> | 2016-11-21 15:42:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-11-21 16:42:01 (GMT) |
commit | 460052516fdd06a2c0c765359f4d92006e67283b (patch) | |
tree | 2513452bbe0c92c0b81b9742cc1272b3e7c4f91a /Tests/InterfaceLibrary/CMakeLists.txt | |
parent | acde2c4a5389bfe5b1af697a02c160060db7d6e8 (diff) | |
download | CMake-460052516fdd06a2c0c765359f4d92006e67283b.zip CMake-460052516fdd06a2c0c765359f4d92006e67283b.tar.gz CMake-460052516fdd06a2c0c765359f4d92006e67283b.tar.bz2 |
Allow NO_SYSTEM_FROM_IMPORTED on imported INTERFACE libraries
Imported INTERFACE libraries can specify include directories via
`INTERFACE_INCLUDE_DIRECTORIES` so the default behavior of treating them
as system include directories applies. Allow users to turn this off by
setting `NO_SYSTEM_FROM_IMPORTED` on such targets.
Closes: #16443
Diffstat (limited to 'Tests/InterfaceLibrary/CMakeLists.txt')
-rw-r--r-- | Tests/InterfaceLibrary/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/InterfaceLibrary/CMakeLists.txt b/Tests/InterfaceLibrary/CMakeLists.txt index 3db210a..33c4b90 100644 --- a/Tests/InterfaceLibrary/CMakeLists.txt +++ b/Tests/InterfaceLibrary/CMakeLists.txt @@ -64,6 +64,7 @@ target_link_libraries(iface_whitelist INTERFACE $<$<BOOL:$<TARGET_PROPERTY:CUSTO add_executable(exec_whitelist dummy.cpp) target_link_libraries(exec_whitelist iface_whitelist) +set(CMAKE_NO_SYSTEM_FROM_IMPORTED 1) add_library(iface_imported INTERFACE IMPORTED) set_property(TARGET iface_imported PROPERTY INTERFACE_COMPILE_DEFINITIONS |