1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
Description: Do not enforce atomics support on archs not supporting it.
armel seems to have no atomic support on opencascade, so make it possible to
hint the build system not to enforce it.
Author: Tobias Frost <tobi@debian.org>
Forwarded: no, Debian specific.
Last-Update: 2018-05-26
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -84,6 +84,11 @@
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)
+
# include cmake file
macro (OCCT_INCLUDE_CMAKE_FILE BEING_INCLUDED_FILE)
include (${CMAKE_SOURCE_DIR}/${BEING_INCLUDED_FILE}.cmake)
|