# HG changeset patch # User Alain Mazy # Date 1722010554 -7200 # Node ID 630a7114d7c70b531736c03bc9a96309c657ef80 # Parent ec0a100d380ea3bc5a27c6d8c9a0a11636d4bc02 sync compiler.cmake to fix macOS build diff -r ec0a100d380e -r 630a7114d7c7 Resources/Orthanc/CMake/Compiler.cmake --- a/Resources/Orthanc/CMake/Compiler.cmake Tue Jul 23 08:58:33 2024 +0200 +++ b/Resources/Orthanc/CMake/Compiler.cmake Fri Jul 26 18:15:54 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 )