Fix CGAL_BRANCH_BUILD

The CMake variable `CGAL_BRANCH_BUILD` was an option. But if
the variable was set to `FALSE`, that lead to a CMake error
automatically. This commit fixes that situation by turning the
option into an internal cache value, that cannot be set to FALSE.
This commit is contained in:
Laurent Rineau 2016-08-12 12:42:16 +02:00
parent 061dd8ce08
commit c9e3e6e1e8
1 changed files with 1 additions and 4 deletions

View File

@ -5,10 +5,7 @@ project(CGAL CXX C)
# Minimal version of CMake:
cmake_minimum_required(VERSION 2.8.11)
# option for branch build
option( CGAL_BRANCH_BUILD "Create CGAL from branch" ON)
mark_as_advanced( CGAL_BRANCH_BUILD )
set( CGAL_BRANCH_BUILD ON CACHE INTERNAL "Create CGAL from a Git branch" FORCE)
include(${CMAKE_SOURCE_DIR}/Installation/cmake/modules/CGAL_SCM.cmake)