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.
This commit is contained in:
Brad King 2009-10-05 14:39:14 -04:00
parent 0556075034
commit 667f0724a8
1 changed files with 3 additions and 3 deletions

View File

@ -2,9 +2,9 @@ cmake_minimum_required (VERSION 2.6)
PROJECT(PrecompiledHeader C) PROJECT(PrecompiledHeader C)
# Make sure the proper compiler is in use. # Make sure the proper compiler is in use.
IF(NOT MSVC) IF(NOT MSVC AND NOT "${CMAKE_C_COMPILER_ID}" MATCHES "^(Intel)$")
MESSAGE(FATAL_ERROR "The PrecompiledHeader test works only with MSVC") MESSAGE(FATAL_ERROR "The PrecompiledHeader test works only with MSVC or Intel")
ENDIF(NOT MSVC) ENDIF()
# Compute a custom name for the precompiled header. # Compute a custom name for the precompiled header.
IF(CMAKE_CONFIGURATION_TYPES) IF(CMAKE_CONFIGURATION_TYPES)