diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-07-15 15:27:06 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-07-15 15:27:06 (GMT) |
commit | 271208dceb7f0f81d8a2db27475ebb63a26a3562 (patch) | |
tree | 258e90a1eb8a57591f3e796a39e5813ff9299b6c /fortran | |
parent | 7db1ff03a1faff3883d7e812929b0568c8c8b2cf (diff) | |
download | hdf5-271208dceb7f0f81d8a2db27475ebb63a26a3562.zip hdf5-271208dceb7f0f81d8a2db27475ebb63a26a3562.tar.gz hdf5-271208dceb7f0f81d8a2db27475ebb63a26a3562.tar.bz2 |
CMake updates:
Add build folder as Include for generated files
Add install option for copying Fortran mod files to include folder
Add PRI defines to win32defs file
Exclude mingw from extra flags
Diffstat (limited to 'fortran')
-rw-r--r-- | fortran/src/CMakeLists.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/fortran/src/CMakeLists.txt b/fortran/src/CMakeLists.txt index bf2fd84..b1add54 100644 --- a/fortran/src/CMakeLists.txt +++ b/fortran/src/CMakeLists.txt @@ -412,6 +412,16 @@ if (NOT ONLY_SHARED_LIBS) COMPONENT fortheaders ) + if (HDF5_INSTALL_MOD_FORTRAN MATCHES "STATIC") + install ( + FILES + ${mod_files} + DESTINATION + ${HDF5_INSTALL_INCLUDE_DIR} + COMPONENT + fortheaders + ) + endif () endif () if (BUILD_SHARED_LIBS) @@ -445,6 +455,16 @@ if (BUILD_SHARED_LIBS) COMPONENT fortheaders ) + if (HDF5_INSTALL_MOD_FORTRAN MATCHES "SHARED") + install ( + FILES + ${modsh_files} + DESTINATION + ${HDF5_INSTALL_INCLUDE_DIR} + COMPONENT + fortheaders + ) + endif () endif () #----------------------------------------------------------------------------- |