Do not enforce atomics support on archs not supporting it.
authorTobias Frost <tobi@debian.org>
Tue, 2 Aug 2022 13:06:17 +0000 (14:06 +0100)
committerTobias Frost <tobi@debian.org>
Tue, 2 Aug 2022 13:06:17 +0000 (14:06 +0100)
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

CMakeLists.txt

index 459f71b2938ee214c44d58aadf2f6df90bb70f1e..8c510c9178a1d7ef7cc15e51b055fe3fbea0c1f5 100644 (file)
@@ -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")