From caeff515cb7499aceb89859c5c3083538181d40d Mon Sep 17 00:00:00 2001
From: Mark Olesen <Mark.Olesen@esi-group.com>
Date: Tue, 30 Apr 2019 10:33:01 +0200
Subject: [PATCH] COMP: skip CGAL rules when -DNO_CGAL is defined for
 surfaceBooleanFeatures

---
 .../utilities/surface/surfaceBooleanFeatures/Make/options     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/applications/utilities/surface/surfaceBooleanFeatures/Make/options b/applications/utilities/surface/surfaceBooleanFeatures/Make/options
index 92d2dd6b7b..df9419059b 100644
--- a/applications/utilities/surface/surfaceBooleanFeatures/Make/options
+++ b/applications/utilities/surface/surfaceBooleanFeatures/Make/options
@@ -3,10 +3,12 @@ EXE_NDEBUG = -DNDEBUG
 
 c++CGALWARN = -Wno-old-style-cast
 
-/*-- Define NO_CGAL to avoid using CGAL altogether */
+/*-- Define NO_CGAL in COMP_FLAGS to avoid using CGAL altogether */
 /*-- Define CGAL_INEXACT to use inexact CGAL constructions */
 
+ifeq (,$(findstring NO_CGAL,$(COMP_FLAGS)))
 include $(GENERAL_RULES)/CGAL
+endif
 
 EXE_INC = \
     ${ROUNDING_MATH} \
-- 
GitLab