Prefix our CMake function name with "cgal"

This commit is contained in:
Laurent Rineau 2018-04-13 15:02:22 +02:00
parent 17032feff4
commit 0e55a45155
1 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ set(CGAL_HEADER_ONLY TRUE)
# the binary directory. # the binary directory.
set(CGAL_CURRENT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) set(CGAL_CURRENT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
function(_detect_branch_build VAR_NAME) function(cgal_detect_branch_build VAR_NAME)
if(IS_DIRECTORY ${CGAL_CONFIG_DIR}/../../../../Installation/package_info/Installation/) if(IS_DIRECTORY ${CGAL_CONFIG_DIR}/../../../../Installation/package_info/Installation/)
set(${VAR_NAME} TRUE PARENT_SCOPE) set(${VAR_NAME} TRUE PARENT_SCOPE)
else() else()
@ -52,7 +52,7 @@ function(_detect_branch_build VAR_NAME)
endif() endif()
endfunction() endfunction()
_detect_branch_build(BRANCH_BUILD) cgal_detect_branch_build(BRANCH_BUILD)
if(BRANCH_BUILD) if(BRANCH_BUILD)
set(CGAL_ROOT ${CGAL_CONFIG_DIR}/../../../..) set(CGAL_ROOT ${CGAL_CONFIG_DIR}/../../../..)
set(CGAL_INSTALLATION_PACKAGE_DIR ${CGAL_ROOT}/Installation) set(CGAL_INSTALLATION_PACKAGE_DIR ${CGAL_ROOT}/Installation)
@ -111,7 +111,7 @@ endforeach()
include(CGAL_setup_target_dependencies) include(CGAL_setup_target_dependencies)
# #
# Define the CGAL targets and theirs CGAL:: aliases # Define the CGAL targets and their CGAL:: aliases
# #
foreach(cgal_lib ${CGAL_LIBRARIES}) foreach(cgal_lib ${CGAL_LIBRARIES})
set(WITH_${cgal_lib} TRUE) set(WITH_${cgal_lib} TRUE)