diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/cmake_ext_mod/HDFMacros.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/cmake_ext_mod/HDFMacros.cmake b/config/cmake_ext_mod/HDFMacros.cmake index b151a45..f4386ec 100644 --- a/config/cmake_ext_mod/HDFMacros.cmake +++ b/config/cmake_ext_mod/HDFMacros.cmake @@ -44,11 +44,11 @@ endmacro () macro (INSTALL_TARGET_PDB libtarget targetdestination targetcomponent) if (WIN32 AND MSVC) get_target_property (target_type ${libtarget} TYPE) - if (target_type MATCHES "STATIC_LIBRARY") + if (${libtype} MATCHES "SHARED") + set (targetfilename $<TARGET_PDB_FILE:${libtarget}>) + else () get_property (target_name TARGET ${libtarget} PROPERTY OUTPUT_NAME_RELWITHDEBINFO) set (targetfilename $<TARGET_FILE_DIR:${libtarget}>/${target_name}.pdb) - else () - set (targetfilename $<TARGET_PDB_FILE:${libtarget}>) endif () install ( FILES |