Mercurial > hg > orthanc
comparison OrthancFramework/Resources/CMake/BoostConfiguration.cmake @ 5398:08b5516c6e5e
compatibility of OrthancFramework with latest releases of Emscripten
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 11 Oct 2023 15:26:45 +0200 |
parents | e7f6ec8cbc35 |
children | 59e3b6f8c5be |
comparison
equal
deleted
inserted
replaced
5397:e7f6ec8cbc35 | 5398:08b5516c6e5e |
---|---|
105 | 105 |
106 DownloadPackage(${BOOST_MD5} ${BOOST_URL} "${BOOST_SOURCES_DIR}") | 106 DownloadPackage(${BOOST_MD5} ${BOOST_URL} "${BOOST_SOURCES_DIR}") |
107 | 107 |
108 | 108 |
109 ## | 109 ## |
110 ## Apply the patches to remove threads from boost::locale (required | |
111 ## since around Emscripten 3.x) | |
112 ## | |
113 | |
114 if (FirstRun) | |
115 execute_process( | |
116 COMMAND ${PATCH_EXECUTABLE} -p0 -N -i | |
117 ${CMAKE_CURRENT_LIST_DIR}/../Patches/boost-1.83.0-emscripten.patch | |
118 WORKING_DIRECTORY ${CMAKE_BINARY_DIR} | |
119 RESULT_VARIABLE Failure | |
120 ) | |
121 | |
122 if (Failure) | |
123 message(FATAL_ERROR "Error while patching a file") | |
124 endif() | |
125 endif() | |
126 | |
127 | |
128 ## | |
110 ## Generic configuration of Boost | 129 ## Generic configuration of Boost |
111 ## | 130 ## |
112 | 131 |
113 if (CMAKE_COMPILER_IS_GNUCXX) | 132 if (CMAKE_COMPILER_IS_GNUCXX) |
114 add_definitions(-isystem ${BOOST_SOURCES_DIR}) | 133 add_definitions(-isystem ${BOOST_SOURCES_DIR}) |