Mercurial > hg > orthanc-wsi
comparison Resources/Orthanc/CMake/Compiler.cmake @ 320:196d0e18afa0
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 16 Oct 2024 14:58:02 +0200 |
parents | 0683312e21ba |
children |
comparison
equal
deleted
inserted
replaced
319:9ce06c06c984 | 320:196d0e18afa0 |
---|---|
230 add_definitions(-DHAVE_WIN_PTHREAD=0) | 230 add_definitions(-DHAVE_WIN_PTHREAD=0) |
231 endif() | 231 endif() |
232 endif() | 232 endif() |
233 | 233 |
234 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") | 234 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") |
235 | |
236 # fix this error that appears with recent compilers on MacOS: boost/mpl/aux_/integral_wrapper.hpp:73:31: error: integer value -1 is outside the valid range of values [0, 3] for this enumeration type [-Wenum-constexpr-conversion] | |
237 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-enum-constexpr-conversion") | |
238 | |
235 add_definitions( | 239 add_definitions( |
236 -D_XOPEN_SOURCE=1 | 240 -D_XOPEN_SOURCE=1 |
237 ) | 241 ) |
238 link_libraries(iconv) | 242 link_libraries(iconv) |
239 | 243 |