Tests: do not build PrecompiledHeader on Clang/C2

This commit is contained in:
Mariusz Pluciński 2016-02-23 23:20:32 +01:00 committed by Brad King
parent a0f0541f35
commit ad6d27ac2a
1 changed files with 3 additions and 1 deletions

View File

@ -1744,8 +1744,10 @@ ${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)
if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
ADD_TEST_MACRO(PrecompiledHeader foo)
endif()
endif()
if(MSVC OR
"${CMAKE_GENERATOR}" MATCHES "(MSYS|MinGW) Makefiles")
ADD_TEST_MACRO(ModuleDefinition example_exe)