mirror of https://github.com/CGAL/cgal
Merge pull request #6649 from lrineau/fix_issue_6647
CGALConfig.cmake: Warn only if CGAL_TEST_SUITE is set and CGAL_DATA_DIR is not
This commit is contained in:
commit
e5f1bae4ba
|
|
@ -89,6 +89,7 @@ if (NOT CGAL_DATA_DIR)
|
|||
if (EXISTS "${CMAKE_SOURCE_DIR}/../../data")
|
||||
set(CGAL_DATA_DIR "${CMAKE_SOURCE_DIR}/../../data")
|
||||
else()
|
||||
if(CGAL_TEST_SUITE)
|
||||
message(WARNING "CGAL_DATA_DIR cannot be deduced, set the variable CGAL_DATA_DIR to set the default value of CGAL::data_file_path()")
|
||||
endif()
|
||||
endif()
|
||||
|
|
@ -96,6 +97,7 @@ if (NOT CGAL_DATA_DIR)
|
|||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT TARGET CGAL::Data)
|
||||
add_library(CGAL::Data INTERFACE IMPORTED GLOBAL)
|
||||
|
|
|
|||
Loading…
Reference in New Issue