1
0
mirror of synced 2024-12-01 02:37:18 +01:00

build: Improve pdb generation

This commit is contained in:
WerWolv 2023-12-21 13:57:40 +01:00
parent 86231d0154
commit b0490cfbbc

View File

@ -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)