diff options
author | Mariusz PluciĆski <mplucinski@mplucinski.com> | 2016-02-23 22:20:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-03-10 14:11:42 (GMT) |
commit | ad6d27ac2aeaeb8fbcfc4d4476db33da1ce441f3 (patch) | |
tree | afa6123e90c5bf39bcd55239faa2dac94c835787 | |
parent | a0f0541f356da18bbcab28325dd5c1258190effc (diff) | |
download | CMake-ad6d27ac2aeaeb8fbcfc4d4476db33da1ce441f3.zip CMake-ad6d27ac2aeaeb8fbcfc4d4476db33da1ce441f3.tar.gz CMake-ad6d27ac2aeaeb8fbcfc4d4476db33da1ce441f3.tar.bz2 |
Tests: do not build PrecompiledHeader on Clang/C2
-rw-r--r-- | Tests/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index c7d2138..a4b8757 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -1744,7 +1744,9 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release if(MSVC) ADD_TEST_MACRO(ForceInclude foo) ADD_TEST_MACRO(PDBDirectoryAndName myexe) - ADD_TEST_MACRO(PrecompiledHeader foo) + if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang") + ADD_TEST_MACRO(PrecompiledHeader foo) + endif() endif() if(MSVC OR "${CMAKE_GENERATOR}" MATCHES "(MSYS|MinGW) Makefiles") |