diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-09-21 21:02:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-21 21:02:30 (GMT) |
commit | 0b814068ed589c1d14dee1d7f900d4daacb62535 (patch) | |
tree | 7cc0a6e79a2a810049ef3f4f79b24223c5c54d7f | |
parent | b5c45528599fc3899758064113132607998cffa7 (diff) | |
download | hdf5-0b814068ed589c1d14dee1d7f900d4daacb62535.zip hdf5-0b814068ed589c1d14dee1d7f900d4daacb62535.tar.gz hdf5-0b814068ed589c1d14dee1d7f900d4daacb62535.tar.bz2 |
Check config on windows for correct wix name (#3573)
-rw-r--r-- | CMakeInstallation.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeInstallation.cmake b/CMakeInstallation.cmake index 71186ff..3aa7981 100644 --- a/CMakeInstallation.cmake +++ b/CMakeInstallation.cmake @@ -390,7 +390,11 @@ 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 (WIX_CMP_NAME "${HDF5_LIB_NAME}${CMAKE_DEBUG_POSTFIX}") + if (${HDF_CFG_NAME} MATCHES "Debug" OR ${HDF_CFG_NAME} MATCHES "Developer") + set (WIX_CMP_NAME "${HDF5_LIB_NAME}${CMAKE_DEBUG_POSTFIX}") + else () + set (WIX_CMP_NAME "${HDF5_LIB_NAME}") + endif () 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 () |