summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-11-02 16:56:06 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-11-02 16:56:06 (GMT)
commitc071af4eb1d7b304aea0a91f64182a1bbe3a8c4b (patch)
treeb299c38f4301ebc5c11893e676a7ac2390439ee5
parent337cf6a29d6b6056ed2a418155899676d474daa8 (diff)
parent47f4db394bc488d4311a6e1bf833c90abf3247b9 (diff)
downloadhdf5-c071af4eb1d7b304aea0a91f64182a1bbe3a8c4b.zip
hdf5-c071af4eb1d7b304aea0a91f64182a1bbe3a8c4b.tar.gz
hdf5-c071af4eb1d7b304aea0a91f64182a1bbe3a8c4b.tar.bz2
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.
-rw-r--r--CMakeLists.txt6
-rw-r--r--MANIFEST6
-rw-r--r--fortran/examples/CMakeLists.txt2
-rw-r--r--release_docs/RELEASE.txt11
4 files changed, 22 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2ec2b2d..f21f8b7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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 ()
diff --git a/MANIFEST b/MANIFEST
index c325e64..4270479 100644
--- a/MANIFEST
+++ b/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
diff --git a/fortran/examples/CMakeLists.txt b/fortran/examples/CMakeLists.txt
index 82cbd5c..426df7e 100644
--- a/fortran/examples/CMakeLists.txt
+++ b/fortran/examples/CMakeLists.txt
@@ -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)
diff --git a/release_docs/RELEASE.txt b/release_docs/RELEASE.txt
index b66355e..54867af 100644
--- a/release_docs/RELEASE.txt
+++ b/release_docs/RELEASE.txt
@@ -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