diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-07-29 12:20:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-29 12:20:11 (GMT) |
commit | c63dfb0fd3345ecb33014612f94d3959f147be03 (patch) | |
tree | fa48ac9cd2023f0182f6e539bd6b5979bbc350f6 /config | |
parent | 3a44ac33203fa8322ab42d3c3e4a0c81134b04e5 (diff) | |
download | hdf5-c63dfb0fd3345ecb33014612f94d3959f147be03.zip hdf5-c63dfb0fd3345ecb33014612f94d3959f147be03.tar.gz hdf5-c63dfb0fd3345ecb33014612f94d3959f147be03.tar.bz2 |
fortran module folder from GH#1411 #1922 (#1943)
Diffstat (limited to 'config')
-rw-r--r-- | config/cmake_ext_mod/HDFMacros.cmake | 5 | ||||
-rw-r--r-- | config/libhdf5.fpc.in | 16 |
2 files changed, 20 insertions, 1 deletions
diff --git a/config/cmake_ext_mod/HDFMacros.cmake b/config/cmake_ext_mod/HDFMacros.cmake index 260fd55..6f517bd 100644 --- a/config/cmake_ext_mod/HDFMacros.cmake +++ b/config/cmake_ext_mod/HDFMacros.cmake @@ -344,6 +344,9 @@ macro (HDF_DIR_PATHS package_prefix) if (NOT ${package_prefix}_INSTALL_INCLUDE_DIR) set (${package_prefix}_INSTALL_INCLUDE_DIR include) endif () + if (NOT ${package_prefix}_INSTALL_MODULE_DIR) + set (${package_prefix}_INSTALL_MODULE_DIR mod) + endif () if (NOT ${package_prefix}_INSTALL_DATA_DIR) if (NOT MSVC) if (APPLE) @@ -412,7 +415,7 @@ macro (HDF_DIR_PATHS package_prefix) ${PROJECT_BINARY_DIR}/bin CACHE PATH "Single Directory for all static libraries." ) set (CMAKE_Fortran_MODULE_DIRECTORY - ${PROJECT_BINARY_DIR}/bin CACHE PATH "Single Directory for all fortran modules." + ${PROJECT_BINARY_DIR}/mod CACHE PATH "Single Directory for all fortran modules." ) get_property(_isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) if(_isMultiConfig) diff --git a/config/libhdf5.fpc.in b/config/libhdf5.fpc.in new file mode 100644 index 0000000..c28c2f9 --- /dev/null +++ b/config/libhdf5.fpc.in @@ -0,0 +1,16 @@ +prefix=@_PKG_CONFIG_PREFIX@ +exec_prefix=@_PKG_CONFIG_EXEC_PREFIX@ +libdir=@_PKG_CONFIG_LIBDIR@ +includedir=@_PKG_CONFIG_INCLUDEDIR@ +moddir=@_PKG_CONFIG_MODULEDIR@ + +Name: @_PKG_CONFIG_LIBNAME@ +Description: HDF5 (Hierarchical Data Format 5) Software Library +Version: @_PKG_CONFIG_VERSION@ + +Cflags: -I${includedir} +Fflags: -I${moddir} +Libs: -L${libdir} @_PKG_CONFIG_SH_LIBS@ +Requires: @_PKG_CONFIG_REQUIRES@ +Libs.private: @_PKG_CONFIG_LIBS_PRIVATE@ @_PKG_CONFIG_LIBS@ +Requires.private: @_PKG_CONFIG_REQUIRES_PRIVATE@ |