From 35fa581403dc056528968234f608c4a7d68da26a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 15 Dec 2010 10:22:26 +0000 Subject: BKE_assert(), only prints the error unless cmake define WITH_ASSERT_ABORT is enabled and it will call abort(). made this option advanced so people don't enable along with other features. --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ccfb12b7ff..03a61a1a316 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -128,6 +128,9 @@ option(WITH_PYTHON_INSTALL "Copy system python into the blender install fo option(WITH_CXX_GUARDEDALLOC "Enable GuardedAlloc for C++ memory allocation tracking" OFF) mark_as_advanced(WITH_CXX_GUARDEDALLOC) +option(WITH_ASSERT_ABORT "Call abort() when raising an assertion through BKE_assert()" OFF) +mark_as_advanced(WITH_ASSERT_ABORT) + if(APPLE) option(WITH_COCOA "Use Cocoa framework instead of deprecated Carbon" ON) option(USE_QTKIT "Use QtKit instead of Carbon quicktime (needed for having partial quicktime for 64bit)" OFF) @@ -1011,6 +1014,10 @@ if(WITH_CXX_GUARDEDALLOC) set(CMAKE_CXX_FLAGS " -DWITH_CXX_GUARDEDALLOC -I${CMAKE_SOURCE_DIR}/intern/guardedalloc ${CMAKE_CXX_FLAGS}") endif() +if(WITH_ASSERT_ABORT) + add_definitions(-DWITH_ASSERT_ABORT) +endif() + #----------------------------------------------------------------------------- # Libraries -- cgit v1.2.3