summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-02-03 18:41:30 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-02-03 18:41:30 (GMT)
commitd1292691c42cbc548fc7e4b39e4dd9cc1a376f94 (patch)
treeee18c022f3fb6a27610efbe5a9f14acec064b699 /config
parent290a83ff8fd0064a39da2d5d4e5d651653f118bb (diff)
downloadhdf5-d1292691c42cbc548fc7e4b39e4dd9cc1a376f94.zip
hdf5-d1292691c42cbc548fc7e4b39e4dd9cc1a376f94.tar.gz
hdf5-d1292691c42cbc548fc7e4b39e4dd9cc1a376f94.tar.bz2
HDFFV-9875 enable static pdb and cleanup exports
Diffstat (limited to 'config')
-rw-r--r--config/cmake_ext_mod/HDFMacros.cmake13
1 files changed, 12 insertions, 1 deletions
diff --git a/config/cmake_ext_mod/HDFMacros.cmake b/config/cmake_ext_mod/HDFMacros.cmake
index 5086a68..ecf3be0 100644
--- a/config/cmake_ext_mod/HDFMacros.cmake
+++ b/config/cmake_ext_mod/HDFMacros.cmake
@@ -102,6 +102,18 @@ macro (HDF_SET_LIB_OPTIONS libtarget libname libtype)
OUTPUT_NAME_MINSIZEREL ${LIB_RELEASE_NAME}
OUTPUT_NAME_RELWITHDEBINFO ${LIB_RELEASE_NAME}
)
+ if (${libtype} MATCHES "STATIC")
+ if (WIN32)
+ set_target_properties (${libtarget}
+ PROPERTIES
+ COMPILE_PDB_NAME_DEBUG ${LIB_DEBUG_NAME}
+ COMPILE_PDB_NAME_RELEASE ${LIB_RELEASE_NAME}
+ COMPILE_PDB_NAME_MINSIZEREL ${LIB_RELEASE_NAME}
+ COMPILE_PDB_NAME_RELWITHDEBINFO ${LIB_RELEASE_NAME}
+ COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}"
+ )
+ endif ()
+ endif ()
#----- Use MSVC Naming conventions for Shared Libraries
if (MINGW AND ${libtype} MATCHES "SHARED")
@@ -167,7 +179,6 @@ macro (HDF_IMPORT_SET_LIB_OPTIONS libtarget libname libtype libversion)
)
endif ()
endif ()
-
endmacro ()
#-------------------------------------------------------------------------------