# HG changeset patch # User Sebastien Jodogne # Date 1728055122 -7200 # Node ID f3bbafc067d02989ad3f206c9e22795cbc3d0ac8 # Parent a5c1be2ec26a4cadc4faed08b9e200147ce67ca6 sync diff -r a5c1be2ec26a -r f3bbafc067d0 Resources/Orthanc/CMake/Compiler.cmake --- a/Resources/Orthanc/CMake/Compiler.cmake Fri Oct 04 17:12:49 2024 +0200 +++ b/Resources/Orthanc/CMake/Compiler.cmake Fri Oct 04 17:18:42 2024 +0200 @@ -232,6 +232,10 @@ endif() elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") + + # 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] + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-enum-constexpr-conversion") + add_definitions( -D_XOPEN_SOURCE=1 )