diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-07-27 17:29:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 17:29:22 (GMT) |
commit | fc9f31ad8c8ff4122e8bb2997e0a2bfa89cb054b (patch) | |
tree | 8c8c33c722ed8aefd3a738a77a03972249880cea /config/cmake_ext_mod | |
parent | a0a1959c58973095194f2d9ac5f9b13bb7b14fb4 (diff) | |
download | hdf5-fc9f31ad8c8ff4122e8bb2997e0a2bfa89cb054b.zip hdf5-fc9f31ad8c8ff4122e8bb2997e0a2bfa89cb054b.tar.gz hdf5-fc9f31ad8c8ff4122e8bb2997e0a2bfa89cb054b.tar.bz2 |
fortran module folder from GH#1411 #1922 (#1942)
Diffstat (limited to 'config/cmake_ext_mod')
-rw-r--r-- | config/cmake_ext_mod/HDFMacros.cmake | 5 |
1 files changed, 4 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) |