diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2019-05-29 18:55:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-06-03 14:20:23 (GMT) |
commit | ec66af2026e085e7b648b222794f0f213183ea1e (patch) | |
tree | 349db0d7cc51317dce0572bfff44878ec85a39d4 /Tests/RunCMake/PolicyScope | |
parent | 2d4787fc4ddc077e1d8fcb807768d1ecc7902a73 (diff) | |
download | CMake-ec66af2026e085e7b648b222794f0f213183ea1e.zip CMake-ec66af2026e085e7b648b222794f0f213183ea1e.tar.gz CMake-ec66af2026e085e7b648b222794f0f213183ea1e.tar.bz2 |
Genex: CompilerId now can match against a list of ids.
This allows for expressions like:
$<$<CXX_COMPILER_ID:Clang,GNU>:-DMY_PRIVATE_DEFINE>
Diffstat (limited to 'Tests/RunCMake/PolicyScope')
-rw-r--r-- | Tests/RunCMake/PolicyScope/dir1/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/PolicyScope/dir1/CMakeLists.txt b/Tests/RunCMake/PolicyScope/dir1/CMakeLists.txt index 16bcb36..66ff016 100644 --- a/Tests/RunCMake/PolicyScope/dir1/CMakeLists.txt +++ b/Tests/RunCMake/PolicyScope/dir1/CMakeLists.txt @@ -2,4 +2,4 @@ add_library(foo STATIC foo.cpp) string(TOLOWER ${CMAKE_CXX_COMPILER_ID} compiler_id) -target_compile_definitions(foo PRIVATE Foo=$<CXX_COMPILER_ID:${compiler_id}>) +target_compile_definitions(foo PRIVATE Foo=$<CXX_COMPILER_ID:invalid,${compiler_id}>) |