File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -654,12 +654,12 @@ if (WIN32 AND DEPLOY_FILES)
654654 )
655655 endforeach ()
656656
657- # Move built .exe and .pdb to deploy folder
657+ # Move built .exe and .pdb to deploy folder, print if pdb is missing
658658 add_custom_command (
659659 TARGET SerialPrograms POST_BUILD
660660 COMMAND ${CMAKE_COMMAND} -E echo "[Deploy] Moving built exe and pdb"
661661 COMMAND ${CMAKE_COMMAND} -E rename $<TARGET_FILE:SerialPrograms> "${DEPLOY_DIR} /$<TARGET_FILE_NAME:SerialPrograms>"
662- COMMAND $ {CMAKE_COMMAND} -E rename $<TARGET_PDB_FILE:SerialPrograms> "${DEPLOY_DIR} /$<TARGET_PDB_FILE_NAME:SerialPrograms>"
662+ COMMAND cmd /c "if exist \" $<TARGET_PDB_FILE:SerialPrograms> \" ( \" $ {CMAKE_COMMAND}\" -E rename \" $<TARGET_PDB_FILE:SerialPrograms>\" \ "${DEPLOY_DIR} /$<TARGET_PDB_FILE_NAME:SerialPrograms>\" ) else ( echo [Deploy] PDB file missing: $<TARGET_PDB_FILE:SerialPrograms> ) "
663663 )
664664
665665 # Extract Discord SDK if missing
You can’t perform that action at this time.
0 commit comments