From: Tobias Frost Date: Wed, 2 Oct 2024 20:00:00 +0000 (+0200) Subject: Do not enforce atomics support on archs not supporting it. X-Git-Tag: archive/raspbian/7.8.1+dfsg1-3+rpi1^2~12 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=844ff264c4920ed20198ba770d8eb9d54a6c823e;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 036055c15..318ed2450 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,12 @@ else () endif() set (CMAKE_CXX_STANDARD_REQUIRED ON) +# 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")