summaryrefslogtreecommitdiffstats
path: root/fortran
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-10-25 15:50:43 (GMT)
committerGitHub <noreply@github.com>2022-10-25 15:50:43 (GMT)
commitea902f9acefec5303cb3e3527d4472e97956a122 (patch)
tree80be2bb4a7e373a81d8bde511e361d3cd8bfcdca /fortran
parentf98c93ab193bd7258f165de8c61a1809087975ee (diff)
downloadhdf5-ea902f9acefec5303cb3e3527d4472e97956a122.zip
hdf5-ea902f9acefec5303cb3e3527d4472e97956a122.tar.gz
hdf5-ea902f9acefec5303cb3e3527d4472e97956a122.tar.bz2
Implement option for using CMake GNUInstallDirs (#2175)
* Implement option for using CMake GNUInstallDirs * Add release notes
Diffstat (limited to 'fortran')
-rw-r--r--fortran/src/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/fortran/src/CMakeLists.txt b/fortran/src/CMakeLists.txt
index 5c36fd6..d11b700 100644
--- a/fortran/src/CMakeLists.txt
+++ b/fortran/src/CMakeLists.txt
@@ -540,9 +540,9 @@ endif ()
#-----------------------------------------------------------------------------
set (_PKG_CONFIG_PREFIX ${CMAKE_INSTALL_PREFIX})
set (_PKG_CONFIG_EXEC_PREFIX \${prefix})
-set (_PKG_CONFIG_LIBDIR \${exec_prefix}/lib)
-set (_PKG_CONFIG_INCLUDEDIR \${prefix}/include)
-set (_PKG_CONFIG_MODULEDIR \${prefix}/mod)
+set (_PKG_CONFIG_LIBDIR \${exec_prefix}/${HDF5_INSTALL_LIB_DIR})
+set (_PKG_CONFIG_INCLUDEDIR \${prefix}/${HDF5_INSTALL_INCLUDE_DIR})
+set (_PKG_CONFIG_MODULEDIR \${prefix}/${HDF5_INSTALL_MODULE_DIR})
set (_PKG_CONFIG_LIBNAME "${HDF5_F90_LIB_CORENAME}")
set (_PKG_CONFIG_VERSION "${HDF5_PACKAGE_VERSION}")