Mercurial > hg > orthanc
diff Resources/CMake/BoostConfiguration.cmake @ 1096:44f139b62108
patch for XCode 5.1
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 05 Aug 2014 16:13:33 +0200 |
parents | 1b905ad6c913 |
children | f16f5a8df647 |
line wrap: on
line diff
--- a/Resources/CMake/BoostConfiguration.cmake Tue Aug 05 15:47:26 2014 +0200 +++ b/Resources/CMake/BoostConfiguration.cmake Tue Aug 05 16:13:33 2014 +0200 @@ -95,6 +95,16 @@ ) endif() + if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") + # This is a patch to compile Boost 1.55.0 with Clang 3.4 and later + # (including XCode 5.1). Fixes issue 14 of Orthanc. + # https://trac.macports.org/ticket/42282#comment:10 + execute_process( + COMMAND patch -p0 -i ${ORTHANC_ROOT}/Resources/Patches/boost-1.55.0-clang-atomic.patch + WORKING_DIRECTORY ${CMAKE_BINARY_DIR} + ) + endif() + aux_source_directory(${BOOST_SOURCES_DIR}/libs/regex/src BOOST_REGEX_SOURCES) list(APPEND BOOST_SOURCES