File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,9 @@ if (${OPTION_TARGET_MOVINGBOUNDARY_SOLVER} OR
238
238
add_subdirectory (hdf5-1.8.11 )
239
239
else ()
240
240
set (HDF5_USE_STATIC_LIBRARIES ON )
241
+ if (WINDOWS OR WIN32 OR WIN64 )
242
+ set (HDF5_USE_STATIC_LIBRARIES OFF )
243
+ endif ()
241
244
#CMakeList.txt that comes with hdf5 switches library name if compiled with debug
242
245
find_package (HDF5 COMPONENTS HL CXX C )
243
246
set (HDF_VERSION ${HDF5_VERSION} )
Original file line number Diff line number Diff line change @@ -171,8 +171,6 @@ elseif (OPTION_MINGW)
171
171
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static")
172
172
# set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "${CMAKE_SHARED_LIBRARY_LINK_C_FLAGS} -static -s")
173
173
# 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" )
176
174
endif ()
177
175
178
176
set (APPLE_BUILD 0 )
You can’t perform that action at this time.
0 commit comments