Subject: CGAL users discussion list
List archive
- From: Marc Glisse <>
- To:
- Subject: Re: [cgal-discuss] Turn off CGAL assertions
- Date: Fri, 10 Nov 2017 19:16:19 +0100 (CET)
On Fri, 10 Nov 2017, Adam Getchell wrote:
Thanks for the suggestion!
Neither:
set(CGAL_NO_ASSERTIONS TRUE CACHE BOOL “Turn off Triangulation checks” FORCE)
Nor:
set(CGAL_TRIANGULATION_NO_ASSERTIONS CACHE BOOL “Turn off Triangulation
checks” FORCE)
Ah, I hadn't noticed, all those (including CGAL_NDEBUG) are not meant as cmake variables (cmake is the root of all evil), they are preprocessor variables, so you should add -DCGAL_NO_ASSERTIONS to CXXFLAGS or something like that.
Prevent:
CGAL error: assertion violation!
Expression : false
File : /usr/local/include/CGAL/Delaunay_triangulation_3.h
Line : 1973
Explanation:
Refer to the bug-reporting instructions at http://www.cgal.org/bug_report.html
<http://www.cgal.org/bug_report.html>
If I run in release mode (NDEBUG), that does work. Unfortunately, it also
prevents me from interactively debugging my code.
CMake has RelWithDebInfo as an alternative to Release or Debug. Don't
know how well that works for CGAL... And nothing prevents you from
adding -DNDEBUG in debug mode.
--
Marc Glisse
- [cgal-discuss] Turn off CGAL assertions, Adam Getchell, 11/10/2017
- Re: [cgal-discuss] Turn off CGAL assertions, Marc Glisse, 11/10/2017
- Re: [cgal-discuss] Turn off CGAL assertions, Adam Getchell, 11/10/2017
- Re: [cgal-discuss] Turn off CGAL assertions, Marc Glisse, 11/10/2017
- Re: [cgal-discuss] Turn off CGAL assertions, Adam Getchell, 11/10/2017
- Re: [cgal-discuss] Turn off CGAL assertions, Marc Glisse, 11/10/2017
Archive powered by MHonArc 2.6.18.