diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-02-17 22:18:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-17 22:18:05 (GMT) |
commit | 7a199519842f1f70f80d31a2f6be9ac6efc2e57a (patch) | |
tree | 2da6ca2d74856c28bea13a5f3680562b25361093 /hl/src | |
parent | 63fa76cc846e88630f50393328d332b15278448a (diff) | |
download | hdf5-7a199519842f1f70f80d31a2f6be9ac6efc2e57a.zip hdf5-7a199519842f1f70f80d31a2f6be9ac6efc2e57a.tar.gz hdf5-7a199519842f1f70f80d31a2f6be9ac6efc2e57a.tar.bz2 |
1.10 Merge Merge CMake generated pkg-config file is incorrect #2259 (#2479)
* Merge Merge CMake generated pkg-config file is incorrect #2259
* Fix spacing
Diffstat (limited to 'hl/src')
-rw-r--r-- | hl/src/CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/hl/src/CMakeLists.txt b/hl/src/CMakeLists.txt index 6dd5be7..f52faf6 100644 --- a/hl/src/CMakeLists.txt +++ b/hl/src/CMakeLists.txt @@ -127,14 +127,18 @@ set (_PKG_CONFIG_LIBDIR \${exec_prefix}/${HDF5_INSTALL_LIB_DIR}) set (_PKG_CONFIG_INCLUDEDIR \${prefix}/${HDF5_INSTALL_INCLUDE_DIR}) set (_PKG_CONFIG_LIBNAME "${HDF5_HL_LIB_CORENAME}") set (_PKG_CONFIG_VERSION "${HDF5_PACKAGE_VERSION}") +set (PKG_CONFIG_LIBNAME "${HDF5_HL_LIB_CORENAME}") +if (${HDF_CFG_NAME} MATCHES "Debug" OR ${HDF_CFG_NAME} MATCHES "Developer") + set (PKG_CONFIG_LIBNAME "${PKG_CONFIG_LIBNAME}${CMAKE_DEBUG_POSTFIX}") +endif () set (_PKG_CONFIG_LIBS_PRIVATE) if (NOT ONLY_SHARED_LIBS) - set (_PKG_CONFIG_LIBS "${_PKG_CONFIG_LIBS} -l${HDF5_HL_LIB_CORENAME}") + set (_PKG_CONFIG_LIBS "${_PKG_CONFIG_LIBS} -l${PKG_CONFIG_LIBNAME}") endif () if (BUILD_SHARED_LIBS) - set (_PKG_CONFIG_SH_LIBS "${_PKG_CONFIG_SH_LIBS} -l${HDF5_HL_LIB_CORENAME}") + set (_PKG_CONFIG_SH_LIBS "${_PKG_CONFIG_SH_LIBS} -l${PKG_CONFIG_LIBNAME}") endif () set (_PKG_CONFIG_REQUIRES "${HDF5_LIB_CORENAME} = ${HDF5_PACKAGE_VERSION}") |