Mercurial > hg > orthanc
comparison Resources/CMake/Compiler.cmake @ 495:5bb96a6100c0
fixes for mingw64
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 19 Jul 2013 16:11:13 +0200 |
parents | a1b9d1e1497b |
children | b2b56b4e33b0 |
comparison
equal
deleted
inserted
replaced
494:012b63028085 | 495:5bb96a6100c0 |
---|---|
72 add_definitions( | 72 add_definitions( |
73 -DWINVER=0x0501 | 73 -DWINVER=0x0501 |
74 -D_CRT_SECURE_NO_WARNINGS=1 | 74 -D_CRT_SECURE_NO_WARNINGS=1 |
75 ) | 75 ) |
76 link_libraries(rpcrt4 ws2_32) | 76 link_libraries(rpcrt4 ws2_32) |
77 | |
78 if (${CMAKE_COMPILER_IS_GNUCXX}) | |
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++") | |
81 endif() | |
82 | |
77 endif() | 83 endif() |
78 | 84 |
79 | 85 |
80 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") | 86 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") |
81 CHECK_INCLUDE_FILES(rpc.h HAVE_UUID_H) | 87 CHECK_INCLUDE_FILES(rpc.h HAVE_UUID_H) |