summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-02-01 19:30:09 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-02-01 19:30:09 (GMT)
commit3c169f947382da170c8589f6c00896a9c4ea8e6c (patch)
tree23b6dda252e605008b4c83ce4452453f1b9842da /config
parent0668e1ba1e00002e7e6104eae50325e9d32544e4 (diff)
downloadhdf5-3c169f947382da170c8589f6c00896a9c4ea8e6c.zip
hdf5-3c169f947382da170c8589f6c00896a9c4ea8e6c.tar.gz
hdf5-3c169f947382da170c8589f6c00896a9c4ea8e6c.tar.bz2
HDFFV-10123 Use generator expression
Diffstat (limited to 'config')
-rw-r--r--config/cmake_ext_mod/HDFMacros.cmake6
1 files changed, 2 insertions, 4 deletions
diff --git a/config/cmake_ext_mod/HDFMacros.cmake b/config/cmake_ext_mod/HDFMacros.cmake
index ec3934d..23fd6b2 100644
--- a/config/cmake_ext_mod/HDFMacros.cmake
+++ b/config/cmake_ext_mod/HDFMacros.cmake
@@ -43,10 +43,9 @@ endmacro ()
#-------------------------------------------------------------------------------
macro (INSTALL_TARGET_PDB libtarget targetdestination targetcomponent)
if (WIN32 AND MSVC)
- get_target_property (target_name ${libtarget} OUTPUT_NAME_RELWITHDEBINFO)
install (
FILES
- ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE}/${CMAKE_IMPORT_LIBRARY_PREFIX}${target_name}.pdb
+ $<TARGET_PDB_FILE:${libtarget}>
DESTINATION
${targetdestination}
CONFIGURATIONS RelWithDebInfo
@@ -58,10 +57,9 @@ endmacro ()
#-------------------------------------------------------------------------------
macro (INSTALL_PROGRAM_PDB progtarget targetdestination targetcomponent)
if (WIN32 AND MSVC)
- get_target_property (target_name ${progtarget} OUTPUT_NAME_RELWITHDEBINFO)
install (
FILES
- ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE}/${target_name}.pdb
+ $<TARGET_PDB_FILE:${progtarget}>
DESTINATION
${targetdestination}
CONFIGURATIONS RelWithDebInfo