diff options
author | Brad King <brad.king@kitware.com> | 2009-10-05 18:39:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-10-05 18:39:14 (GMT) |
commit | 667f0724a87ea5fa5f71c475f7588a9deab75ebb (patch) | |
tree | 30d0b7469ab173f68e9e3f8a1f17eb9227fe615d /Tests/PrecompiledHeader/CMakeLists.txt | |
parent | 0556075034cb7588f118d773920d9ffc7b11a977 (diff) | |
download | CMake-667f0724a87ea5fa5f71c475f7588a9deab75ebb.zip CMake-667f0724a87ea5fa5f71c475f7588a9deab75ebb.tar.gz CMake-667f0724a87ea5fa5f71c475f7588a9deab75ebb.tar.bz2 |
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.
Diffstat (limited to 'Tests/PrecompiledHeader/CMakeLists.txt')
-rw-r--r-- | Tests/PrecompiledHeader/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/PrecompiledHeader/CMakeLists.txt b/Tests/PrecompiledHeader/CMakeLists.txt index 00c3980..d423cae 100644 --- a/Tests/PrecompiledHeader/CMakeLists.txt +++ b/Tests/PrecompiledHeader/CMakeLists.txt @@ -2,9 +2,9 @@ cmake_minimum_required (VERSION 2.6) PROJECT(PrecompiledHeader C) # Make sure the proper compiler is in use. -IF(NOT MSVC) - MESSAGE(FATAL_ERROR "The PrecompiledHeader test works only with MSVC") -ENDIF(NOT MSVC) +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. IF(CMAKE_CONFIGURATION_TYPES) |