comparison Orthanc/Resources/CMake/Compiler.cmake @ 31:111689a2c177

author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 24 Jun 2015 16:20:41 +0200
parents d158e4ca5734
children
comparison
equal deleted inserted replaced
30:ad7b6757965a 31:111689a2c177
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.