comparison OrthancFramework/Resources/CMake/JsonCppConfiguration.cmake @ 4843:93ef0342850e

reintroduce -std=c++11 for macOS
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 07 Dec 2021 12:54:42 +0100
parents 044573b90881
children 43e613a7756b
comparison
equal deleted inserted replaced
4842:044573b90881 4843:93ef0342850e
96 if (JSONCPP_CXX11) 96 if (JSONCPP_CXX11)
97 # Osimis has encountered problems when this macro is left at its 97 # Osimis has encountered problems when this macro is left at its
98 # default value (1000), so we increase this limit 98 # default value (1000), so we increase this limit
99 # https://gitlab.kitware.com/third-party/jsoncpp/commit/56df2068470241f9043b676bfae415ed62a0c172 99 # https://gitlab.kitware.com/third-party/jsoncpp/commit/56df2068470241f9043b676bfae415ed62a0c172
100 add_definitions(-DJSONCPP_DEPRECATED_STACK_LIMIT=5000) 100 add_definitions(-DJSONCPP_DEPRECATED_STACK_LIMIT=5000)
101
102 if (APPLE AND
103 "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
104 # Explicitly adding "-std=c++11" is needed on XCode
105 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
106 endif()
101 endif() 107 endif()