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:
Laurent Rineau 2022-06-10 16:45:31 +02:00
commit e5f1bae4ba
1 changed files with 3 additions and 1 deletions

View File

@ -89,12 +89,14 @@ 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()
endif()
endif()
endif()
endif()
endif()
if(NOT TARGET CGAL::Data)