summaryrefslogtreecommitdiffstats
path: root/Tests/PDBDirectoryAndName
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-09-29 10:36:46 (GMT)
committerBrad King <brad.king@kitware.com>2012-09-29 11:17:42 (GMT)
commit2ccca05fade0014dbfbce906b20ab4073ecd8d9c (patch)
treeb775cae8af5cd59e37710152ac719f90e8bd19a7 /Tests/PDBDirectoryAndName
parentefc83b369b26624e7f0fb90d9125ef5ec6d1f7fa (diff)
downloadCMake-2ccca05fade0014dbfbce906b20ab4073ecd8d9c.zip
CMake-2ccca05fade0014dbfbce906b20ab4073ecd8d9c.tar.gz
CMake-2ccca05fade0014dbfbce906b20ab4073ecd8d9c.tar.bz2
Run PDBDirectoryAndName test on MSVC and Intel
Move it out of the condition that also accepts MinGW/MSYS. Teach the test to allow the Intel for Windows compiler but do not verify the results because the compiler does not seem to write PDB output in all cases.
Diffstat (limited to 'Tests/PDBDirectoryAndName')
-rw-r--r--Tests/PDBDirectoryAndName/CMakeLists.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/Tests/PDBDirectoryAndName/CMakeLists.txt b/Tests/PDBDirectoryAndName/CMakeLists.txt
index 865d278..bc2f013 100644
--- a/Tests/PDBDirectoryAndName/CMakeLists.txt
+++ b/Tests/PDBDirectoryAndName/CMakeLists.txt
@@ -1,8 +1,9 @@
cmake_minimum_required(VERSION 2.8)
project(PDBDirectoryAndName C)
-if(NOT MSVC)
- MESSAGE(FATAL_ERROR "The PDB file test works only with MSVC")
+# Make sure the proper compiler is in use.
+if(NOT MSVC AND NOT "${CMAKE_C_COMPILER_ID}" MATCHES "^(Intel)$")
+ message(FATAL_ERROR "The PDBDirectoryAndName test works only with MSVC or Intel")
endif()
set(my_targets "")
@@ -57,6 +58,10 @@ target_link_libraries(myexe2 mylibA mylibD)
if("${CMAKE_GENERATOR}" MATCHES "Visual Studio 6")
return()
endif()
+# PDB output not fully implemented for Intel
+if("${CMAKE_C_COMPILER_ID}" MATCHES "^(Intel)$")
+ return()
+endif()
set(pdbs "")
foreach(t ${my_targets})