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 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})