diff 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
line wrap: on
line diff
--- a/Resources/Orthanc/CMake/Compiler.cmake	Fri Sep 13 17:59:54 2024 +0200
+++ b/Resources/Orthanc/CMake/Compiler.cmake	Wed Oct 16 14:58:02 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
     )