build: Improve pdb generation
This commit is contained in:
parent
86231d0154
commit
b0490cfbbc
@ -678,9 +678,12 @@ function(generatePDBs)
|
|||||||
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/${GENERATED_PDB}.pdb
|
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/${GENERATED_PDB}.pdb
|
||||||
WORKING_DIRECTORY ${cv2pdb_SOURCE_DIR}
|
WORKING_DIRECTORY ${cv2pdb_SOURCE_DIR}
|
||||||
COMMAND
|
COMMAND
|
||||||
(${CMAKE_COMMAND} -E remove -f ${CMAKE_BINARY_DIR}/${GENERATED_PDB}.pdb &&
|
(
|
||||||
${cv2pdb_SOURCE_DIR}/cv2pdb64.exe
|
${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:${PDB}> ${CMAKE_BINARY_DIR}/${GENERATED_PDB}.bak &&
|
||||||
$<TARGET_FILE:${PDB}>) || (exit 0)
|
${CMAKE_COMMAND} -E remove -f ${CMAKE_BINARY_DIR}/${GENERATED_PDB}.pdb &&
|
||||||
|
${cv2pdb_SOURCE_DIR}/cv2pdb64.exe ${CMAKE_BINARY_DIR}/${GENERATED_PDB}.bak &&
|
||||||
|
${CMAKE_COMMAND} -E remove -f ${CMAKE_BINARY_DIR}/${GENERATED_PDB}.bak
|
||||||
|
) || (exit 0)
|
||||||
DEPENDS $<TARGET_FILE:${PDB}>
|
DEPENDS $<TARGET_FILE:${PDB}>
|
||||||
COMMAND_EXPAND_LISTS)
|
COMMAND_EXPAND_LISTS)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user