mirror of https://github.com/CGAL/cgal
Fix for the case where CGAL is configured
This commit is contained in:
parent
abf414df81
commit
15f0171013
|
|
@ -9,6 +9,7 @@ export(PACKAGE CGAL)
|
|||
|
||||
set( CGAL_BRANCH_BUILD ON CACHE INTERNAL "Create CGAL from a Git branch" FORCE)
|
||||
|
||||
include(${CMAKE_SOURCE_DIR}/CGALConfigVersion.cmake)
|
||||
include(${CMAKE_SOURCE_DIR}/Installation/cmake/modules/CGAL_SCM.cmake)
|
||||
CGAL_detect_git(${CMAKE_SOURCE_DIR})
|
||||
|
||||
|
|
|
|||
|
|
@ -140,10 +140,6 @@ if ( CGAL_BRANCH_BUILD )
|
|||
# Create version files
|
||||
#
|
||||
|
||||
file(STRINGS "${CGAL_MAINTENANCE_PACKAGE_DIR}/release_building/MAJOR_NUMBER" CGAL_MAJOR_VERSION REGEX "[0-9]*")
|
||||
file(STRINGS "${CGAL_MAINTENANCE_PACKAGE_DIR}/release_building/MINOR_NUMBER" CGAL_MINOR_VERSION REGEX "[0-9]*")
|
||||
file(STRINGS "${CGAL_MAINTENANCE_PACKAGE_DIR}/release_building/BUGFIX_NUMBER" CGAL_BUGFIX_VERSION REGEX "[0-9]*")
|
||||
|
||||
file(REMOVE ${CMAKE_BINARY_DIR}/VERSION)
|
||||
if (CGAL_BUGFIX_VERSION AND CGAL_BUGFIX_VERSION GREATER 0)
|
||||
set(CGAL_CREATED_VERSION_NUM "${CGAL_MAJOR_VERSION}.${CGAL_MINOR_VERSION}.${CGAL_BUGFIX_VERSION}")
|
||||
|
|
|
|||
Loading…
Reference in New Issue