From 9c67734dcc3b7ea1f32f7a1735d116c6bea7931b Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 11 Oct 2019 12:02:25 +0200 Subject: [PATCH] Push the `#define CGAL_HEADER_ONLY` at the top --- Installation/include/CGAL/config.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Installation/include/CGAL/config.h b/Installation/include/CGAL/config.h index 69797f4b536..9421212b20a 100644 --- a/Installation/include/CGAL/config.h +++ b/Installation/include/CGAL/config.h @@ -30,6 +30,11 @@ #ifndef CGAL_CONFIG_H #define CGAL_CONFIG_H +// CGAL is header-only by default since CGAL-5.0. +#if !defined(CGAL_HEADER_ONLY) && ! CGAL_NOT_HEADER_ONLY +# define CGAL_HEADER_ONLY 1 +#endif + #ifdef CGAL_HEADER_ONLY # define CGAL_NO_AUTOLINK 1 #endif @@ -152,9 +157,6 @@ // platform specific workaround flags (CGAL_CFG_...) //----------------------------------------------------------------------// -#if ! CGAL_NOT_HEADER_ONLY -# define CGAL_HEADER_ONLY 1 -#endif #if CGAL_HEADER_ONLY # include # if(BOOST_MSVC)