HDFFV-10123 Use generator expression

This commit is contained in:
Allen Byrne
2017-02-01 13:30:09 -06:00
parent 0668e1ba1e
commit 3c169f9473

View File

@@ -43,10 +43,9 @@ endmacro ()
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
macro (INSTALL_TARGET_PDB libtarget targetdestination targetcomponent) macro (INSTALL_TARGET_PDB libtarget targetdestination targetcomponent)
if (WIN32 AND MSVC) if (WIN32 AND MSVC)
get_target_property (target_name ${libtarget} OUTPUT_NAME_RELWITHDEBINFO)
install ( install (
FILES FILES
${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE}/${CMAKE_IMPORT_LIBRARY_PREFIX}${target_name}.pdb $<TARGET_PDB_FILE:${libtarget}>
DESTINATION DESTINATION
${targetdestination} ${targetdestination}
CONFIGURATIONS RelWithDebInfo CONFIGURATIONS RelWithDebInfo
@@ -58,10 +57,9 @@ endmacro ()
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
macro (INSTALL_PROGRAM_PDB progtarget targetdestination targetcomponent) macro (INSTALL_PROGRAM_PDB progtarget targetdestination targetcomponent)
if (WIN32 AND MSVC) if (WIN32 AND MSVC)
get_target_property (target_name ${progtarget} OUTPUT_NAME_RELWITHDEBINFO)
install ( install (
FILES FILES
${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE}/${target_name}.pdb $<TARGET_PDB_FILE:${progtarget}>
DESTINATION DESTINATION
${targetdestination} ${targetdestination}
CONFIGURATIONS RelWithDebInfo CONFIGURATIONS RelWithDebInfo