Bail if CGAL < 3.6

stl_dim
Marius Kintel 2011-11-24 18:09:17 +01:00
parent 2d98fb91ce
commit 3f0a991a3d
2 changed files with 8 additions and 0 deletions

View File

@ -11,6 +11,11 @@ using boost::intmax_t;
using boost::uintmax_t;
#endif
#include <CGAL/version.h>
#if CGAL_VERSION_NR < 1030601000
#error CGAL >= 3.6 is required!
#endif
#include <CGAL/Gmpq.h>
#include <CGAL/Extended_cartesian.h>
#include <CGAL/Nef_polyhedron_2.h>

View File

@ -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