From d03f76cd78e86e28e1ead7432e8415ec9883f93f Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 2 Feb 2018 14:37:44 +0100 Subject: [PATCH] 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! --- Installation/cmake/modules/UseCGAL.cmake | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Installation/cmake/modules/UseCGAL.cmake b/Installation/cmake/modules/UseCGAL.cmake index a11c5470c87..5128023cc5d 100644 --- a/Installation/cmake/modules/UseCGAL.cmake +++ b/Installation/cmake/modules/UseCGAL.cmake @@ -26,20 +26,6 @@ if(NOT USE_CGAL_FILE_INCLUDED) include(${CMAKE_CURRENT_LIST_DIR}/CGAL_GeneratorSpecificSettings.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 ) foreach ( component ${CGAL_REQUESTED_COMPONENTS} )