mirror of https://github.com/CGAL/cgal
Prefix our CMake function name with "cgal"
This commit is contained in:
parent
17032feff4
commit
0e55a45155
|
|
@ -44,7 +44,7 @@ set(CGAL_HEADER_ONLY TRUE)
|
|||
# the binary directory.
|
||||
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/)
|
||||
set(${VAR_NAME} TRUE PARENT_SCOPE)
|
||||
else()
|
||||
|
|
@ -52,7 +52,7 @@ function(_detect_branch_build VAR_NAME)
|
|||
endif()
|
||||
endfunction()
|
||||
|
||||
_detect_branch_build(BRANCH_BUILD)
|
||||
cgal_detect_branch_build(BRANCH_BUILD)
|
||||
if(BRANCH_BUILD)
|
||||
set(CGAL_ROOT ${CGAL_CONFIG_DIR}/../../../..)
|
||||
set(CGAL_INSTALLATION_PACKAGE_DIR ${CGAL_ROOT}/Installation)
|
||||
|
|
@ -111,7 +111,7 @@ endforeach()
|
|||
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})
|
||||
set(WITH_${cgal_lib} TRUE)
|
||||
|
|
|
|||
Loading…
Reference in New Issue