diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2019-05-07 20:21:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-05-14 18:54:15 (GMT) |
commit | e214abdaab4f8097095a601067b4071194ad01a5 (patch) | |
tree | fbc5642c2d890cb5e0d185bc34326963feef52c3 /Tests/CMakeCommands | |
parent | f84ed796a220c6a4879f08e9003fe5489d8d104d (diff) | |
download | CMake-e214abdaab4f8097095a601067b4071194ad01a5.zip CMake-e214abdaab4f8097095a601067b4071194ad01a5.tar.gz CMake-e214abdaab4f8097095a601067b4071194ad01a5.tar.bz2 |
Genex: Add COMPILE_LANG_AND_ID generator expression
Diffstat (limited to 'Tests/CMakeCommands')
-rw-r--r-- | Tests/CMakeCommands/target_compile_options/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CMakeCommands/target_compile_options/CMakeLists.txt b/Tests/CMakeCommands/target_compile_options/CMakeLists.txt index 1dedbae..a24cd53 100644 --- a/Tests/CMakeCommands/target_compile_options/CMakeLists.txt +++ b/Tests/CMakeCommands/target_compile_options/CMakeLists.txt @@ -8,7 +8,7 @@ add_executable(target_compile_options ) target_compile_options(target_compile_options PRIVATE $<$<CXX_COMPILER_ID:GNU>:-DMY_PRIVATE_DEFINE> - PUBLIC $<$<CXX_COMPILER_ID:GNU>:-DMY_PUBLIC_DEFINE> + PUBLIC $<$<COMPILE_LANG_AND_ID:CXX,GNU>:-DMY_PUBLIC_DEFINE> INTERFACE $<$<CXX_COMPILER_ID:GNU>:-DMY_INTERFACE_DEFINE> ) |