Mercurial > hg > orthanc-python
comparison Resources/Orthanc/CMake/Compiler.cmake @ 69:07fdf388c12e
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 11 Jun 2021 14:37:40 +0200 |
parents | 23f3099bed47 |
children | e2b2e1d4e1bb |
comparison
equal
deleted
inserted
replaced
68:0b3ef425db31 | 69:07fdf388c12e |
---|---|
186 endif() | 186 endif() |
187 | 187 |
188 add_definitions( | 188 add_definitions( |
189 -D_CRT_SECURE_NO_WARNINGS=1 | 189 -D_CRT_SECURE_NO_WARNINGS=1 |
190 ) | 190 ) |
191 link_libraries(rpcrt4 ws2_32) | 191 link_libraries(rpcrt4 ws2_32 iphlpapi) # "iphlpapi" is for "SystemToolbox::GetMacAddresses()" |
192 | 192 |
193 if (CMAKE_COMPILER_IS_GNUCXX) | 193 if (CMAKE_COMPILER_IS_GNUCXX) |
194 # Some additional C/C++ compiler flags for MinGW | 194 # Some additional C/C++ compiler flags for MinGW |
195 SET(MINGW_NO_WARNINGS "-Wno-unused-function -Wno-unused-variable") | 195 SET(MINGW_NO_WARNINGS "-Wno-unused-function -Wno-unused-variable") |
196 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${MINGW_NO_WARNINGS} -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast") | 196 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${MINGW_NO_WARNINGS} -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast") |