static link some c-libs on mingw build

pull/522/head
Ser Lev Arris 2015-04-06 11:06:01 +02:00
parent 4abef9bb4c
commit af2ec9bf9f
1 changed files with 7 additions and 6 deletions

View File

@ -792,12 +792,13 @@ if( MSVC )
set(LIBRARY_SUFFIX "${ASSIMP_LIBRARY_SUFFIX}-${MSVC_PREFIX}-mt" CACHE STRING "the suffix for the assimp windows library" FORCE)
endif()
# for MinGW:
#SET(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
#second try...
#Set Linker flags, TODO: check CMAKE_SHARED_LIBS and maybe add "-static" too.
SET_TARGET_PROPERTIES(assimp PROPERTIES LINK_FLAGS "-static-libgcc -static-libstdc++")
if(MINGW)
# for MinGW:
#SET(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
#second try...
#Set Linker flags, TODO: check CMAKE_SHARED_LIBS and maybe add "-static" too.
SET_TARGET_PROPERTIES(assimp PROPERTIES LINK_FLAGS "-static-libgcc -static-libstdc++")
endif(MINGW)
SET_TARGET_PROPERTIES( assimp PROPERTIES
VERSION ${ASSIMP_VERSION}