mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: remove commented Make/options item (#2668)
COMP: update include for CGAL-5.5 (#2665) old: Robust_circumcenter_filtered_traits_3 new: Robust_weighted_circumcenter_filtered_traits_3 COMP: adjust CGAL rule for OSX (#2664) - since CGAL is now header-only, the previous OSX-specific rules have become redundant
This commit is contained in:
@ -1,21 +1,26 @@
|
||||
# ----------------------------------------------------------------------------
|
||||
# CGAL definitions - several possibilities
|
||||
#
|
||||
# 0. missing
|
||||
# 1. header-only
|
||||
# 2. library, no mpfr
|
||||
# 3. library, with mpfr (a likely default)
|
||||
# - missing
|
||||
# - header-only
|
||||
# - header-only, no mpfr
|
||||
# - library, no mpfr
|
||||
# - library, with mpfr (default for older CGAL)
|
||||
#
|
||||
# Dispatch according to the defined 'CGAL_FLAVOUR'
|
||||
# - names may change [see wmake/scripts/have_cgal]
|
||||
# (no-cgal | cgal-header | cgal-no-mpfr | cgal-mpfr)
|
||||
# (no-cgal | cgal-header | cgal-header-no-mpfr | cgal-no-mpfr | cgal-mpfr)
|
||||
|
||||
cgal_subrule := cgal-mpfr
|
||||
ifneq (,$(findstring header,$(CGAL_FLAVOUR)))
|
||||
cgal_subrule := cgal-header-only
|
||||
endif
|
||||
ifneq (,$(findstring no-mpfr,$(CGAL_FLAVOUR)))
|
||||
cgal_subrule := cgal-no-mpfr
|
||||
ifneq (,$(findstring header,$(CGAL_FLAVOUR)))
|
||||
cgal_subrule := cgal-header-no-mpfr
|
||||
endif
|
||||
else
|
||||
ifneq (,$(findstring header,$(CGAL_FLAVOUR)))
|
||||
cgal_subrule := cgal-header-only
|
||||
endif
|
||||
endif
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
18
wmake/rules/General/cgal-header-no-mpfr
Normal file
18
wmake/rules/General/cgal-header-no-mpfr
Normal file
@ -0,0 +1,18 @@
|
||||
# -----------------------------------------------------------------------------
|
||||
# CGAL (header-only version) without mpfr
|
||||
|
||||
CGAL_INC = -DCGAL_HEADER_ONLY
|
||||
CGAL_LIBS =
|
||||
|
||||
CGAL_INC += \
|
||||
$(foreach dir,$(BOOST_INC_DIR),-I$(dir)) \
|
||||
$(foreach dir,$(CGAL_INC_DIR),-I$(dir))
|
||||
|
||||
CGAL_LIBS += \
|
||||
$(foreach dir,$(BOOST_LIB_DIR),-L$(dir))
|
||||
|
||||
# ----
|
||||
# Extra failsafe - still needed? (2020-05-15)
|
||||
## CGAL_INC += -I/usr/local/include -I/usr/include
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
@ -1,14 +0,0 @@
|
||||
# ----------------------------------------------------------------------------
|
||||
# CGAL on Darwin
|
||||
# CGAL (library version) without mpfr
|
||||
|
||||
CGAL_INC = \
|
||||
$(foreach dir,$(BOOST_INC_DIR),-I$(dir)) \
|
||||
$(foreach dir,$(CGAL_INC_DIR),-I$(dir))
|
||||
|
||||
CGAL_LIBS = \
|
||||
$(foreach dir,$(BOOST_LIB_DIR),-L$(dir)) \
|
||||
$(foreach dir,$(CGAL_LIB_DIR),-L$(dir)) \
|
||||
-lCGAL
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user