From 3f0a991a3da991ce9672fe92cffa157e194abab9 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Thu, 24 Nov 2011 18:09:17 +0100 Subject: Bail if CGAL < 3.6 diff --git a/src/cgal.h b/src/cgal.h index 26d64ae..669e5b1 100644 --- a/src/cgal.h +++ b/src/cgal.h @@ -11,6 +11,11 @@ using boost::intmax_t; using boost::uintmax_t; #endif +#include +#if CGAL_VERSION_NR < 1030601000 + #error CGAL >= 3.6 is required! +#endif + #include #include #include diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 221500a..15f168f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -190,6 +190,9 @@ if (NOT $ENV{MACOSX_DEPLOY_DIR} STREQUAL "") set(CMAKE_MODULE_PATH "${CGAL_DIR}") endif() find_package(CGAL REQUIRED) +if("${CGAL_MAJOR_VERSION}.${CGAL_MINOR_VERSION}" VERSION_LESS 3.6) + message(FATAL_ERROR "CGAL >= 3.6 required") +endif() include_directories(${CGAL_INCLUDE_DIRS}) # Internal includes -- cgit v0.10.1