build RelWithDebInfo so we can install / archive PDBs

This commit is contained in:
Andy Dill
2020-10-15 13:22:00 -07:00
parent 963aa9f3e5
commit bcbb2f3699
2 changed files with 14 additions and 5 deletions

View File

@ -145,3 +145,12 @@ install(
"../include/discord_register.h"
DESTINATION "include"
)
if (${BUILD_SHARED_LIBS})
if(WIN32)
install(
FILES $<TARGET_PDB_FILE:discord-rpc>
DESTINATION "bin"
OPTIONAL)
endif(WIN32)
endif(${BUILD_SHARED_LIBS})