comparison Resources/CMake/Compiler.cmake @ 1420:5ddbadd17cde

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 23 Jun 2015 11:47:43 +0200
parents 037d5ffca74d
children 307b9ea6c39b
comparison
equal deleted inserted replaced
1418:efc448de0899 1420:5ddbadd17cde
76 link_libraries(rpcrt4 ws2_32) 76 link_libraries(rpcrt4 ws2_32)
77 77
78 if (CMAKE_COMPILER_IS_GNUCXX) 78 if (CMAKE_COMPILER_IS_GNUCXX)
79 # This is a patch for MinGW64 79 # This is a patch for MinGW64
80 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--allow-multiple-definition -static-libgcc -static-libstdc++") 80 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--allow-multiple-definition -static-libgcc -static-libstdc++")
81 SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--allow-multiple-definition -static-libgcc -static-libstdc++")
81 82
82 CHECK_LIBRARY_EXISTS(winpthread pthread_create "" HAVE_WIN_PTHREAD) 83 CHECK_LIBRARY_EXISTS(winpthread pthread_create "" HAVE_WIN_PTHREAD)
83 if (HAVE_WIN_PTHREAD) 84 if (HAVE_WIN_PTHREAD)
84 # This line is necessary to compile with recent versions of MinGW, 85 # This line is necessary to compile with recent versions of MinGW,
85 # otherwise "libwinpthread-1.dll" is not statically linked. 86 # otherwise "libwinpthread-1.dll" is not statically linked.