Tests: fix PDBDirectoryAndName on Clang/C2
This commit is contained in:
parent
3541af67b7
commit
a0f0541f35
|
@ -1,4 +1,5 @@
|
||||||
cmake_minimum_required(VERSION 2.8)
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
cmake_policy(SET CMP0054 NEW)
|
||||||
project(PDBDirectoryAndName C)
|
project(PDBDirectoryAndName C)
|
||||||
|
|
||||||
# Make sure the proper compiler is in use.
|
# Make sure the proper compiler is in use.
|
||||||
|
@ -62,6 +63,14 @@ list(APPEND my_targets myexe2)
|
||||||
|
|
||||||
target_link_libraries(myexe2 mylibA mylibD)
|
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.
|
# Check that PDB files actually appear where expected.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue