Skip to content

Commit

Permalink
Only check for STATIC only builds
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnHDF committed Nov 28, 2023
1 parent 47b5c72 commit 8876f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/cmake/HDF5ExampleCache.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set (H5EX_HDF5_DIR ${CMAKE_CURRENT_BINARY_DIR} CACHE STRING "HDF5 build folder"
if (NOT BUILD_SHARED_LIBS AND BUILD_STATIC_LIBS)
set (USE_SHARED_LIBS OFF CACHE BOOL "Use Shared Libraries for Examples" FORCE)
set (H5EX_HDF5_LINK_LIBS ${HDF5_LIB_TARGET} CACHE STRING "HDF5 target" FORCE)
elseif (BUILD_SHARED_LIBS AND NOT BUILD_STATIC_LIBS)
else ()
set (USE_SHARED_LIBS ON CACHE BOOL "Use Shared Libraries for Examples" FORCE)
set (H5EX_HDF5_LINK_LIBS ${HDF5_LIBSH_TARGET} CACHE STRING "HDF5 target" FORCE)
endif ()
Expand Down

0 comments on commit 8876f1d

Please sign in to comment.