From 7d991f56a5bcd9eb56c2168a596b6778f4f75508 Mon Sep 17 00:00:00 2001 From: Mikyung Lee Date: Thu, 25 Feb 2021 07:13:02 -0600 Subject: [PATCH 1/2] change linking to openmp lib to private --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6aac705810..93971cd5f2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -285,7 +285,7 @@ foreach(kind ${kinds}) MPI::MPI_Fortran) if(OpenMP_Fortran_FOUND) - target_link_libraries(${libTgt} PUBLIC OpenMP::OpenMP_Fortran) + target_link_libraries(${libTgt} PRIVATE OpenMP::OpenMP_Fortran) endif() add_library(FMS::${libTgt} ALIAS ${libTgt}) From a0bcfb6639688ac46162b250d0263ce72311a6df Mon Sep 17 00:00:00 2001 From: Ryan Mulhall Date: Thu, 25 Feb 2021 13:24:56 -0500 Subject: [PATCH 2/2] Update changelog with 2020.04.03 change --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f3ceb3a641..5b662b7906 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ A unit test was added to test the functionality of `get_grid_version_1` - The autotools build has been changed to copy each subdirectory module (.mod) files to a common .mod directory located at the top of the source directory. This change simplifies the include path specifications. - Use F90 module files for external libraries (MPI and NetCDF) for improved interface checking, thereby removing the reliance on library header include files. - FMS2_IO: Changed how nest file names are created to be consistent with mpp_io +- CMAKE: Changed visibility of FMS OpenMP libraries to private in order to avoid conflicts with model libraries ### Removed - LIBFMS: The flag -Duse_mpp_io should not be used and will cause a crash - LIBFMS: Macros and logic for interfacing to the Flexible File I/O library