summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMariusz PluciƄski <mplucinski@mplucinski.com>2016-02-21 00:17:29 (GMT)
committerBrad King <brad.king@kitware.com>2016-03-10 14:11:42 (GMT)
commita0f0541f356da18bbcab28325dd5c1258190effc (patch)
treec64e4589bf4bb24daa417775f9528696f92ee131
parent3541af67b71632f352a086524a73ee954a058ac0 (diff)
downloadCMake-a0f0541f356da18bbcab28325dd5c1258190effc.zip
CMake-a0f0541f356da18bbcab28325dd5c1258190effc.tar.gz
CMake-a0f0541f356da18bbcab28325dd5c1258190effc.tar.bz2
Tests: fix PDBDirectoryAndName on Clang/C2
-rw-r--r--Tests/PDBDirectoryAndName/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/PDBDirectoryAndName/CMakeLists.txt b/Tests/PDBDirectoryAndName/CMakeLists.txt
index 180f9fe..5fd69ef 100644
--- a/Tests/PDBDirectoryAndName/CMakeLists.txt
+++ b/Tests/PDBDirectoryAndName/CMakeLists.txt
@@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 2.8)
+cmake_policy(SET CMP0054 NEW)
project(PDBDirectoryAndName C)
# Make sure the proper compiler is in use.
@@ -62,6 +63,14 @@ list(APPEND my_targets myexe2)
target_link_libraries(myexe2 mylibA mylibD)
+
+# Clang/C2 does not produce pdb files for static libraries
+if (CMAKE_C_COMPILER_ID STREQUAL "Clang" AND
+ CMAKE_C_SIMULATE_ID STREQUAL "MSVC")
+ list(REMOVE_ITEM my_targets mylibB mylibD)
+endif()
+
+
#-----------------------------------------------------------------------------
# Check that PDB files actually appear where expected.