diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-07-15 16:27:52 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-07-15 16:27:52 (GMT) |
commit | b0445792fb7cbdc3db9ad9473a934e3079bceb6e (patch) | |
tree | 331d92b3dd1929e561e2c4b5f91419caed70cb0d /fortran | |
parent | 1ecb6ec9c5075a97572d06a1f509cd763be2bc94 (diff) | |
download | hdf5-b0445792fb7cbdc3db9ad9473a934e3079bceb6e.zip hdf5-b0445792fb7cbdc3db9ad9473a934e3079bceb6e.tar.gz hdf5-b0445792fb7cbdc3db9ad9473a934e3079bceb6e.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 3a37278..e133ff2 100644 --- a/fortran/src/CMakeLists.txt +++ b/fortran/src/CMakeLists.txt @@ -410,6 +410,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) @@ -442,6 +452,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 () #----------------------------------------------------------------------------- |