mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-12 17:31:09 +08:00
Merge pull request #744 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to develop
* commit '47f4db394bc488d4311a6e1bf833c90abf3247b9': Add missing dir reference New cmake MPI files HDFFV-10321 Correct fortran link var HDFFV-10321 change note added.
This commit is contained in:
commit
c071af4eb1
@ -877,6 +877,8 @@ if (EXISTS "${HDF5_SOURCE_DIR}/fortran" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/for
|
||||
endif ()
|
||||
|
||||
include (${HDF_RESOURCES_DIR}/HDF5UseFortran.cmake)
|
||||
set (LINK_Fortran_LIBS ${LINK_LIBS})
|
||||
set (LINK_Fortran_SHARED_LIBS ${LINK_SHARED_LIBS})
|
||||
|
||||
if (HDF5_ENABLE_F2003)
|
||||
if (NOT FORTRAN_HAVE_ISO_C_BINDING)
|
||||
@ -886,8 +888,8 @@ if (EXISTS "${HDF5_SOURCE_DIR}/fortran" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/for
|
||||
|
||||
# Parallel IO usage requires MPI to be Linked and Included
|
||||
if (H5_HAVE_PARALLEL)
|
||||
set (LINK_Fortran_LIBS ${LINK_LIBS} ${MPI_Fortran_LIBRARIES})
|
||||
set (LINK_Fortran_SHARED_LIBS ${LINK_SHARED_LIBS} ${MPI_Fortran_LIBRARIES})
|
||||
set (LINK_Fortran_LIBS ${LINK_Fortran_LIBS} ${MPI_Fortran_LIBRARIES})
|
||||
set (LINK_Fortran_SHARED_LIBS ${LINK_Fortran_SHARED_LIBS} ${MPI_Fortran_LIBRARIES})
|
||||
if (MPI_Fortran_LINK_FLAGS)
|
||||
set (CMAKE_Fortran_EXE_LINKER_FLAGS "${MPI_Fortran_LINK_FLAGS} ${CMAKE_EXE_LINKER_FLAGS}")
|
||||
endif ()
|
||||
|
6
MANIFEST
6
MANIFEST
@ -3107,6 +3107,12 @@
|
||||
./config/cmake_ext_mod/NSIS.template.in
|
||||
./config/cmake_ext_mod/runTest.cmake
|
||||
./config/cmake_ext_mod/version.plist.in
|
||||
./config/cmake_ext_mod/FindMPI/fortranparam_mpi.f90.in
|
||||
./config/cmake_ext_mod/FindMPI/libver_mpi.c
|
||||
./config/cmake_ext_mod/FindMPI/libver_mpi.f90.in
|
||||
./config/cmake_ext_mod/FindMPI/mpiver.f90.in
|
||||
./config/cmake_ext_mod/FindMPI/test_mpi.c
|
||||
./config/cmake_ext_mod/FindMPI/test_mpi.f90.in
|
||||
|
||||
# CMake-specific User Files
|
||||
./config/cmake/UserMacros/Windows_MT.cmake
|
||||
|
@ -81,7 +81,7 @@ foreach (example ${F2003_examples})
|
||||
set_target_properties (f03_ex_${example} PROPERTIES
|
||||
LINKER_LANGUAGE Fortran
|
||||
FOLDER examples/fortran03
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/static
|
||||
)
|
||||
if (BUILD_SHARED_LIBS AND NOT SKIP_HDF5_FORTRAN_SHARED)
|
||||
add_executable (f03_ex_${example}-shared ${HDF5_F90_EXAMPLES_SOURCE_DIR}/${example}.f90)
|
||||
|
@ -170,6 +170,17 @@ Bug Fixes since HDF5-1.10.1 release
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
- cmake MPI
|
||||
|
||||
CMake implementation for MPI was problematic and would create incorrect
|
||||
MPI library references in the hdf5 libraries.
|
||||
|
||||
Reworked the CMake MPI code to properly create CMake targets.Also merged
|
||||
the latest CMake FindMPI.cmake changes to the local copy. This is necessary
|
||||
until HDF changes the CMake minimum to 3.9 or greater.
|
||||
|
||||
(ADB - 2017/11/02, HDFFV-10321)
|
||||
|
||||
- cmake
|
||||
|
||||
Too many commands for POST_BUILD step caused command line to be
|
||||
|
Loading…
x
Reference in New Issue
Block a user