changeset 5731:ede854dfef3a

try to fix build on recent compilers on MacOS
author Alain Mazy <am@orthanc.team>
date Fri, 26 Jul 2024 18:03:36 +0200
parents f0ab7a2678fe
children 49c29af02b13
files OrthancFramework/Resources/CMake/Compiler.cmake
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
     )