diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-03-13 21:24:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-13 21:24:49 (GMT) |
commit | cb679af19d170982f522f57beaf72888da324105 (patch) | |
tree | fbefdae6dafa450fe799841c1c881b813569fcf0 /fortran/examples/CMakeLists.txt | |
parent | 3d8dc012a4353336652479541388b8530accb11c (diff) | |
download | hdf5-cb679af19d170982f522f57beaf72888da324105.zip hdf5-cb679af19d170982f522f57beaf72888da324105.tar.gz hdf5-cb679af19d170982f522f57beaf72888da324105.tar.bz2 |
Make sure that ONLY_SHARED_LIBS option is correctly set (#2544)
Diffstat (limited to 'fortran/examples/CMakeLists.txt')
-rw-r--r-- | fortran/examples/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fortran/examples/CMakeLists.txt b/fortran/examples/CMakeLists.txt index 6f1b825..e7edf40 100644 --- a/fortran/examples/CMakeLists.txt +++ b/fortran/examples/CMakeLists.txt @@ -82,7 +82,7 @@ foreach (example ${F2003_examples}) if(MSVC) set_property(TARGET f03_ex_${example} PROPERTY LINK_FLAGS "/SUBSYSTEM:CONSOLE ${WIN_LINK_FLAGS}") endif() - if (NOT ONLY_SHARED_LIBS) + if (BUILD_STATIC_LIBS) target_include_directories (f03_ex_${example} PRIVATE "${CMAKE_Fortran_MODULE_DIRECTORY}/static" @@ -123,7 +123,7 @@ if (H5_HAVE_PARALLEL AND MPI_Fortran_FOUND) if(MSVC) set_property(TARGET f90_ex_ph5example PROPERTY LINK_FLAGS "/SUBSYSTEM:CONSOLE ${WIN_LINK_FLAGS}") endif() - if (NOT ONLY_SHARED_LIBS) + if (BUILD_STATIC_LIBS) target_include_directories (f90_ex_ph5example PRIVATE "${CMAKE_Fortran_MODULE_DIRECTORY}/static" |