Skip to content

Commit

Permalink
more static deactivation
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeByDrescher committed Jan 25, 2024
1 parent 87d84e0 commit afff0cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ if (${OPTION_TARGET_MOVINGBOUNDARY_SOLVER} OR
add_subdirectory(hdf5-1.8.11)
else()
set(HDF5_USE_STATIC_LIBRARIES ON)
if(WINDOWS OR WIN32 OR WIN64)
set(HDF5_USE_STATIC_LIBRARIES OFF)
endif ()
#CMakeList.txt that comes with hdf5 switches library name if compiled with debug
find_package(HDF5 COMPONENTS HL CXX C)
set(HDF_VERSION ${HDF5_VERSION})
Expand Down
2 changes: 0 additions & 2 deletions smoldyn-2.38/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ elseif (OPTION_MINGW)
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static")
# set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "${CMAKE_SHARED_LIBRARY_LINK_C_FLAGS} -static -s")
# set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS} -static -s")
set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "${CMAKE_SHARED_LIBRARY_LINK_C_FLAGS} -s")
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS}-s")
endif()

set(APPLE_BUILD 0)
Expand Down

0 comments on commit afff0cc

Please sign in to comment.