CMake: require at least CGAL 4.0
This commit is contained in:
parent
eccb6d1388
commit
723ce3b7d5
1 changed files with 7 additions and 0 deletions
|
@ -71,7 +71,14 @@ find_package(Boost REQUIRED)
|
||||||
find_package(ZLIB REQUIRED)
|
find_package(ZLIB REQUIRED)
|
||||||
find_package(Threads REQUIRED)
|
find_package(Threads REQUIRED)
|
||||||
find_package(SimGear 2.5.0 REQUIRED)
|
find_package(SimGear 2.5.0 REQUIRED)
|
||||||
|
|
||||||
find_package(CGAL COMPONENTS Core REQUIRED)
|
find_package(CGAL COMPONENTS Core REQUIRED)
|
||||||
|
if(${CGAL_MAJOR_VERSION}.${CGAL_MINOR_VERSION} VERSION_LESS 4.0)
|
||||||
|
message(FATAL_ERROR "CGAL >= 4.0 is required. Found ${CGAL_MAJOR_VERSION}.${CGAL_MINOR_VERSION}")
|
||||||
|
else(${CGAL_MAJOR_VERSION}.${CGAL_MINOR_VERSION} VERSION_LESS 4.0)
|
||||||
|
message(STATUS "Found CGAL ${CGAL_MAJOR_VERSION}.${CGAL_MINOR_VERSION}")
|
||||||
|
endif(${CGAL_MAJOR_VERSION}.${CGAL_MINOR_VERSION} VERSION_LESS 4.0)
|
||||||
|
|
||||||
find_package(TIFF) # needed for SRTM
|
find_package(TIFF) # needed for SRTM
|
||||||
if (CMAKE_CL_64)
|
if (CMAKE_CL_64)
|
||||||
find_package(JPEG) # needed for SRTM
|
find_package(JPEG) # needed for SRTM
|
||||||
|
|
Loading…
Add table
Reference in a new issue