comparison Resources/Orthanc/CMake/Compiler.cmake @ 531:7fd40079a8ee default tip

ignore error on macos
author Alain Mazy <am@orthanc.team>
date Fri, 26 Jul 2024 19:15:18 +0200
parents 630a7114d7c7
children
comparison
equal deleted inserted replaced
530:630a7114d7c7 531:7fd40079a8ee
231 endif() 231 endif()
232 endif() 232 endif()
233 233
234 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") 234 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
235 235
236 # 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] 236 # ignore these errors that appear with recent compilers on MacOS:
237 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-enum-constexpr-conversion") 237 # boost_1_69_0/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]
238 # curl-8.9.0/lib/strerror.c:890:11: error: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'int' [-Wint-conversion]
239 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-enum-constexpr-conversion -Wno-int-conversion")
238 240
239 add_definitions( 241 add_definitions(
240 -D_XOPEN_SOURCE=1 242 -D_XOPEN_SOURCE=1
241 ) 243 )
242 link_libraries(iconv) 244 link_libraries(iconv)