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,12 +89,14 @@ if (NOT CGAL_DATA_DIR)
|
||||||
if (EXISTS "${CMAKE_SOURCE_DIR}/../../data")
|
if (EXISTS "${CMAKE_SOURCE_DIR}/../../data")
|
||||||
set(CGAL_DATA_DIR "${CMAKE_SOURCE_DIR}/../../data")
|
set(CGAL_DATA_DIR "${CMAKE_SOURCE_DIR}/../../data")
|
||||||
else()
|
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()")
|
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()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT TARGET CGAL::Data)
|
if(NOT TARGET CGAL::Data)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue