Mercurial > hg > orthanc-databases
changeset 530:630a7114d7c7
sync compiler.cmake to fix macOS build
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Fri, 26 Jul 2024 18:15:54 +0200 |
parents | ec0a100d380e |
children | 7fd40079a8ee |
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 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 )