summaryrefslogtreecommitdiffstats
path: root/CMakeInstallation.cmake
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2023-09-11 12:45:36 (GMT)
committerGitHub <noreply@github.com>2023-09-11 12:45:36 (GMT)
commitfbb9ad25963c5ca8c2f7827c30e9543df5528778 (patch)
treeac6866e5c3c75559f0f93aea641693f462493ef5 /CMakeInstallation.cmake
parent117d579c326f64d09d71e28cb0135bbd16a5232e (diff)
downloadhdf5-fbb9ad25963c5ca8c2f7827c30e9543df5528778.zip
hdf5-fbb9ad25963c5ca8c2f7827c30e9543df5528778.tar.gz
hdf5-fbb9ad25963c5ca8c2f7827c30e9543df5528778.tar.bz2
Fix windows cpack with debug (#3525)
Diffstat (limited to 'CMakeInstallation.cmake')
-rw-r--r--CMakeInstallation.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeInstallation.cmake b/CMakeInstallation.cmake
index c7b6a1f..070f26f 100644
--- a/CMakeInstallation.cmake
+++ b/CMakeInstallation.cmake
@@ -394,7 +394,9 @@ if (NOT HDF5_EXTERNALLY_CONFIGURED AND NOT HDF5_NO_PACKAGES)
set(CPACK_WIX_PROPERTY_ARPURLINFOABOUT "${HDF5_PACKAGE_URL}")
set(CPACK_WIX_PROPERTY_ARPHELPLINK "${HDF5_PACKAGE_BUGREPORT}")
if (BUILD_SHARED_LIBS)
- set(CPACK_WIX_PATCH_FILE "${HDF_RESOURCES_DIR}/patch.xml")
+ set (WIX_CMP_NAME "${HDF5_LIB_NAME}${CMAKE_DEBUG_POSTFIX}")
+ configure_file (${HDF_RESOURCES_DIR}/patch.xml.in ${HDF5_BINARY_DIR}/patch.xml @ONLY)
+ set(CPACK_WIX_PATCH_FILE "${HDF5_BINARY_DIR}/patch.xml")
endif ()
elseif (APPLE)
list (APPEND CPACK_GENERATOR "STGZ")