|
|
@@ -20,7 +20,9 @@ set_target_properties(mylibB PROPERTIES
|
|
|
PDB_NAME "mylibB_Special"
|
|
|
PDB_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/mylibB_PDB"
|
|
|
)
|
|
|
-list(APPEND my_targets mylibB)
|
|
|
+# TODO: The only .pdb available for a static library is that generated
|
|
|
+# by the compiler /Fd option which is not the same as the linker /pdb.
|
|
|
+# list(APPEND my_targets mylibB)
|
|
|
|
|
|
add_library(mylibC SHARED mylibC.c)
|
|
|
set_target_properties(mylibC PROPERTIES
|
|
|
@@ -32,7 +34,8 @@ add_library(mylibD STATIC mylibD.c)
|
|
|
set_target_properties(mylibD PROPERTIES
|
|
|
PDB_NAME "mylibD_Special"
|
|
|
)
|
|
|
-list(APPEND my_targets mylibD)
|
|
|
+# TODO: See comment for mylibB.
|
|
|
+# list(APPEND my_targets mylibD)
|
|
|
|
|
|
add_executable(myexe myexe.c)
|
|
|
set_target_properties(myexe PROPERTIES
|
|
|
@@ -58,10 +61,6 @@ 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})
|