diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-03-14 01:37:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-14 01:37:36 (GMT) |
commit | 9a5bde57bd216a08d6a66c1702fd87a0b559fada (patch) | |
tree | b88114eae044446cd8a7b5d6a0bcf2383e0fa2e4 /fortran/examples | |
parent | 1e8ce8767a991f269eb5101fbee700db03b09398 (diff) | |
download | hdf5-9a5bde57bd216a08d6a66c1702fd87a0b559fada.zip hdf5-9a5bde57bd216a08d6a66c1702fd87a0b559fada.tar.gz hdf5-9a5bde57bd216a08d6a66c1702fd87a0b559fada.tar.bz2 |
Make sure that ONLY_SHARED_LIBS option is correctly set (#2546)
Diffstat (limited to 'fortran/examples')
-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 610ee8c..14ed5fb 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" |