mirror of https://github.com/CGAL/cgal
Remove that annoying warning
When a user-project is compile from a Git repository, there was that annoying warning about the project not being developed in the same branch as CGAL itself!
This commit is contained in:
parent
e687db7b61
commit
d03f76cd78
|
|
@ -26,20 +26,6 @@ if(NOT USE_CGAL_FILE_INCLUDED)
|
||||||
include(${CMAKE_CURRENT_LIST_DIR}/CGAL_GeneratorSpecificSettings.cmake)
|
include(${CMAKE_CURRENT_LIST_DIR}/CGAL_GeneratorSpecificSettings.cmake)
|
||||||
include(${CMAKE_CURRENT_LIST_DIR}/CGAL_TweakFindBoost.cmake)
|
include(${CMAKE_CURRENT_LIST_DIR}/CGAL_TweakFindBoost.cmake)
|
||||||
|
|
||||||
set(CGAL_INSTALLED_SCM_BRANCH_NAME ${CGAL_SCM_BRANCH_NAME})
|
|
||||||
set(CGAL_SCM_BRANCH_NAME "")
|
|
||||||
|
|
||||||
if( NOT "${CGAL_INSTALLED_SCM_BRANCH_NAME}" STREQUAL "" )
|
|
||||||
include(${CMAKE_CURRENT_LIST_DIR}/CGAL_SCM.cmake)
|
|
||||||
CGAL_detect_git(${CMAKE_SOURCE_DIR})
|
|
||||||
if ( NOT "${CGAL_SCM_BRANCH_NAME}" STREQUAL "" )
|
|
||||||
message ( STATUS "Code taken from Git branch: ${CGAL_SCM_BRANCH_NAME}" )
|
|
||||||
if ( NOT "${CGAL_SCM_BRANCH_NAME}" STREQUAL "${CGAL_INSTALLED_SCM_BRANCH_NAME}")
|
|
||||||
message (AUTHOR_WARNING "Branch '${CGAL_SCM_BRANCH_NAME}' does not match branch '${CGAL_INSTALLED_SCM_BRANCH_NAME}' from which CGAL has been installed. Please consider rebuilding CGAL from this branch.")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set( CGAL_LIBRARIES )
|
set( CGAL_LIBRARIES )
|
||||||
|
|
||||||
foreach ( component ${CGAL_REQUESTED_COMPONENTS} )
|
foreach ( component ${CGAL_REQUESTED_COMPONENTS} )
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue