Copy and install PDB files on msvc builds
This commit is contained in:
7
cmake/copy_on_debug_helper.cmake
Normal file
7
cmake/copy_on_debug_helper.cmake
Normal file
@@ -0,0 +1,7 @@
|
||||
string(REGEX REPLACE "\\.(dll|exe)$" ".pdb" FNAME "${FNAME}")
|
||||
|
||||
if(CONFIG STREQUAL Debug OR CONFIG STREQUAL RelWithDebInfo)
|
||||
file(COPY "${INPUT}/${FNAME}" DESTINATION "${OUTPUT}")
|
||||
elseif(EXISTS "${OUTPUT}/${FNAME}")
|
||||
file(REMOVE "${OUTPUT}/${FNAME}")
|
||||
endif()
|
Reference in New Issue
Block a user