[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.7 1.8
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Oct 5 14:39:16 EDT 2009
Update of /cvsroot/CMake/CMake/Tests/PrecompiledHeader
In directory public:/mounts/ram/cvs-serv21294/Tests/PrecompiledHeader
Modified Files:
CMakeLists.txt
Log Message:
Fix PrecompiledHeader test for Intel on Windows
This commit updates the test's sanity check to allow Intel too.
Previously it refused to run on non-MSVC compilers.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/PrecompiledHeader/CMakeLists.txt,v
retrieving revision 1.7
retrieving revision 1.8
diff -C 2 -d -r1.7 -r1.8
*** CMakeLists.txt 13 Jul 2009 20:58:24 -0000 1.7
--- CMakeLists.txt 5 Oct 2009 18:39:14 -0000 1.8
***************
*** 3,9 ****
# Make sure the proper compiler is in use.
! IF(NOT MSVC)
! MESSAGE(FATAL_ERROR "The PrecompiledHeader test works only with MSVC")
! ENDIF(NOT MSVC)
# Compute a custom name for the precompiled header.
--- 3,9 ----
# Make sure the proper compiler is in use.
! IF(NOT MSVC AND NOT "${CMAKE_C_COMPILER_ID}" MATCHES "^(Intel)$")
! MESSAGE(FATAL_ERROR "The PrecompiledHeader test works only with MSVC or Intel")
! ENDIF()
# Compute a custom name for the precompiled header.
More information about the Cmake-commits
mailing list