diff options
author | Brad King <brad.king@kitware.com> | 2018-03-13 17:40:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-03-13 17:40:25 (GMT) |
commit | a039029e7c4e00f3a64578f94e593f00719bb01c (patch) | |
tree | 37dfb11d5ba36ae10da3de699fb725597420fbc7 /Tests | |
parent | a54b56a10bc1d03bd6e56b76f0098fb1835094c9 (diff) | |
parent | 1b5e52fd651ab17b3f9efb8f3e2e069550bf7a66 (diff) | |
download | CMake-a039029e7c4e00f3a64578f94e593f00719bb01c.zip CMake-a039029e7c4e00f3a64578f94e593f00719bb01c.tar.gz CMake-a039029e7c4e00f3a64578f94e593f00719bb01c.tar.bz2 |
Merge branch 'genex-COMPILE_LANGUAGE-system-include' into release-3.11
Merge-request: !1844
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/IncludeDirectories/SystemIncludeDirectories/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/IncludeDirectories/SystemIncludeDirectories/CMakeLists.txt b/Tests/IncludeDirectories/SystemIncludeDirectories/CMakeLists.txt index 5078f30..20bd601 100644 --- a/Tests/IncludeDirectories/SystemIncludeDirectories/CMakeLists.txt +++ b/Tests/IncludeDirectories/SystemIncludeDirectories/CMakeLists.txt @@ -32,7 +32,9 @@ target_link_libraries(consumer upstream config_specific) target_compile_options(consumer PRIVATE -Werror=unused-variable) add_library(iface IMPORTED INTERFACE) -set_property(TARGET iface PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/systemlib_header_only") +set_property(TARGET iface PROPERTY INTERFACE_INCLUDE_DIRECTORIES + "$<$<COMPILE_LANGUAGE:CXX>:${CMAKE_CURRENT_SOURCE_DIR}/systemlib_header_only>" + ) add_library(imported_consumer imported_consumer.cpp) target_link_libraries(imported_consumer iface) |