Commit b47322b0 authored by Christophe Geuzaine's avatar Christophe Geuzaine

trying to fix link @AsamMich linking issue on mingw

parent f366f8cc
Pipeline #1633 passed with stage
in 63 minutes 44 seconds
......@@ -1527,10 +1527,10 @@ if(WIN32 AND NOT MSVC OR CYGWIN)
set_target_properties(gmsh PROPERTIES LINK_FLAGS "${FLAGS} -static")
if(ENABLE_BUILD_DYNAMIC OR ENABLE_BUILD_SHARED)
set_target_properties(shared PROPERTIES LINK_FLAGS -static)
# remove -Wl,-Bdynamic flags
set(CMAKE_EXE_LINK_DYNAMIC_C_FLAGS)
set(CMAKE_EXE_LINK_DYNAMIC_CXX_FLAGS)
endif(ENABLE_BUILD_DYNAMIC OR ENABLE_BUILD_SHARED)
# remove -Wl,-Bdynamic flags
set(CMAKE_EXE_LINK_DYNAMIC_C_FLAGS)
set(CMAKE_EXE_LINK_DYNAMIC_CXX_FLAGS)
elseif(MSVC)
set_target_properties(gmsh PROPERTIES LINK_FLAGS "/STACK:16777216 /SAFESEH:NO")
endif(WIN32 AND NOT MSVC OR CYGWIN)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment