From: Tobias Frost Date: Mon, 8 Feb 2021 00:02:09 +0000 (+0000) Subject: Do not enforce atomics support on archs not supporting it. X-Git-Tag: archive/raspbian/7.5.1+dfsg1-2+rpi1^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2e5af6b1ab3fb0a0a0cb2ef748699f384edadb5c;p=opencascade.git Do not enforce atomics support on archs not supporting it. Forwarded: no, Debian specific. Last-Update: 2018-05-26 armel seems to have no atomic support on opencascade, so make it possible to hint the build system not to enforce it. Last-Update: 2018-05-26 Gbp-Pq: Name armel-ftbfs.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 921541390..68d9e00e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,12 @@ set (CMAKE_SUPPRESS_REGENERATION TRUE) set (CMAKE_CONFIGURATION_TYPES Release Debug RelWithDebInfo CACHE INTERNAL "" FORCE) +# Make it possible to ignore if there are no atomics support, needed for armel. +IF(IGNORE_NO_ATOMICS) + ADD_DEFINITIONS(-DIGNORE_NO_ATOMICS) +ENDIF(IGNORE_NO_ATOMICS) + + # macro: include patched file if it exists macro (OCCT_INCLUDE_CMAKE_FILE BEING_INCLUDED_FILE) if (BUILD_PATCH AND EXISTS "${BUILD_PATCH}/${BEING_INCLUDED_FILE}.cmake")