diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-02-17 22:17:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-17 22:17:58 (GMT) |
commit | 593484fa0ee30e42a7b735e6a08744b736885d11 (patch) | |
tree | 1f6ccc0045fc12aa1957178efd75713e1239d3d3 /hl/c++ | |
parent | 606dc11623b57987d77a7640b8687d2f6df6abda (diff) | |
download | hdf5-593484fa0ee30e42a7b735e6a08744b736885d11.zip hdf5-593484fa0ee30e42a7b735e6a08744b736885d11.tar.gz hdf5-593484fa0ee30e42a7b735e6a08744b736885d11.tar.bz2 |
1.12 Merge Correct pkgconfig variables and libraries #2259 (#2478)
* Merge Correct pkgconfig variables and libraries #2259
* Fix spacing
Diffstat (limited to 'hl/c++')
-rw-r--r-- | hl/c++/src/CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/hl/c++/src/CMakeLists.txt b/hl/c++/src/CMakeLists.txt index ab09d74..2483dd4 100644 --- a/hl/c++/src/CMakeLists.txt +++ b/hl/c++/src/CMakeLists.txt @@ -95,14 +95,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_CPP_LIB_CORENAME}") set (_PKG_CONFIG_VERSION "${HDF5_PACKAGE_VERSION}") +set (PKG_CONFIG_LIBNAME "${HDF5_HL_CPP_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_CPP_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_CPP_LIB_CORENAME}") + set (_PKG_CONFIG_SH_LIBS "${_PKG_CONFIG_SH_LIBS} -l${PKG_CONFIG_LIBNAME}") endif () set (_PKG_CONFIG_REQUIRES "${HDF5_HL_LIB_CORENAME} = ${HDF5_PACKAGE_VERSION}") |