# HG changeset patch # User Alain Mazy # Date 1722009816 -7200 # Node ID ede854dfef3a3e31a1e065d48027d36adbe658f4 # Parent f0ab7a2678fef8b4037a359548f59261e1b6dbc8 try to fix build on recent compilers on MacOS diff -r f0ab7a2678fe -r ede854dfef3a OrthancFramework/Resources/CMake/Compiler.cmake --- a/OrthancFramework/Resources/CMake/Compiler.cmake Fri Jul 26 16:29:38 2024 +0200 +++ b/OrthancFramework/Resources/CMake/Compiler.cmake Fri Jul 26 18:03:36 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 )