static link some c-libs on mingw build
parent
4abef9bb4c
commit
af2ec9bf9f
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue