summaryrefslogtreecommitdiffstats
path: root/config/cmake_ext_mod
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-02-02 20:58:53 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-02-02 20:58:53 (GMT)
commitfb587185a2b4b926b9f68e4c954f163c80749763 (patch)
treef91d9cb40dba7b1e9fdcf11dfcd35bd31e8d69d2 /config/cmake_ext_mod
parentb477d8142ad2052e8c0f5995c701e7aa2725ea7a (diff)
downloadhdf5-fb587185a2b4b926b9f68e4c954f163c80749763.zip
hdf5-fb587185a2b4b926b9f68e4c954f163c80749763.tar.gz
hdf5-fb587185a2b4b926b9f68e4c954f163c80749763.tar.bz2
HDFFV-9875 Change test for shared libs
Diffstat (limited to 'config/cmake_ext_mod')
-rw-r--r--config/cmake_ext_mod/HDFMacros.cmake6
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