mirror of https://github.com/CGAL/cgal
Merge pull request #3778 from lrineau/CGAL-fix_installed_header_only-GF
Fix the *installed* header-only CGALConfig.cmake
This commit is contained in:
commit
291a1f1221
|
|
@ -19,6 +19,7 @@ function(cgal_detect_branch_build VAR_NAME)
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
set(CGAL_FOUND FALSE)
|
||||||
cgal_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})
|
||||||
|
|
@ -44,8 +45,12 @@ if(BRANCH_BUILD)
|
||||||
else()
|
else()
|
||||||
set(CGAL_ROOT ${CGAL_CONFIG_DIR})
|
set(CGAL_ROOT ${CGAL_CONFIG_DIR})
|
||||||
get_filename_component(CGAL_ROOT "${CGAL_ROOT}" DIRECTORY)
|
get_filename_component(CGAL_ROOT "${CGAL_ROOT}" DIRECTORY)
|
||||||
get_filename_component(CGAL_ROOT "${CGAL_ROOT}" DIRECTORY)
|
if(NOT EXISTS ${CGAL_ROOT}/include/CGAL/config.h)
|
||||||
get_filename_component(CGAL_ROOT "${CGAL_ROOT}" DIRECTORY)
|
get_filename_component(CGAL_ROOT "${CGAL_ROOT}" DIRECTORY)
|
||||||
|
endif()
|
||||||
|
if(NOT EXISTS ${CGAL_ROOT}/include/CGAL/config.h)
|
||||||
|
get_filename_component(CGAL_ROOT "${CGAL_ROOT}" DIRECTORY)
|
||||||
|
endif()
|
||||||
|
|
||||||
# not BRANCH_BUILD: it can be an installed CGAL, or the tarball layout
|
# not BRANCH_BUILD: it can be an installed CGAL, or the tarball layout
|
||||||
if(EXISTS ${CGAL_CONFIG_DIR}/CGAL_add_test.cmake)
|
if(EXISTS ${CGAL_CONFIG_DIR}/CGAL_add_test.cmake)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue