Skip to content

Commit afff0cc

Browse files
more static deactivation
1 parent 87d84e0 commit afff0cc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ if (${OPTION_TARGET_MOVINGBOUNDARY_SOLVER} OR
238238
add_subdirectory(hdf5-1.8.11)
239239
else()
240240
set(HDF5_USE_STATIC_LIBRARIES ON)
241+
if(WINDOWS OR WIN32 OR WIN64)
242+
set(HDF5_USE_STATIC_LIBRARIES OFF)
243+
endif ()
241244
#CMakeList.txt that comes with hdf5 switches library name if compiled with debug
242245
find_package(HDF5 COMPONENTS HL CXX C)
243246
set(HDF_VERSION ${HDF5_VERSION})

smoldyn-2.38/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ elseif (OPTION_MINGW)
171171
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static")
172172
# set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "${CMAKE_SHARED_LIBRARY_LINK_C_FLAGS} -static -s")
173173
# set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS} -static -s")
174-
set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "${CMAKE_SHARED_LIBRARY_LINK_C_FLAGS} -s")
175-
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS}-s")
176174
endif()
177175

178176
set(APPLE_BUILD 0)

0 commit comments

Comments
 (0)