changeset 71:f3bbafc067d0

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 04 Oct 2024 17:18:42 +0200
parents a5c1be2ec26a
children e94f177c3653
files Resources/Orthanc/CMake/Compiler.cmake
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
     )