vcpkg/ports/cgal/fix-incorrect-warning.patch
Jack·Boos·Yu 6506e80eb2
[cgal] Fix incorrect warning message (#24112)
* [cgal] Install data folder

* version

* Add double quotes

* version

* version

* Add comment to patch

* version
2022-06-13 13:57:56 -07:00

16 lines
820 B
Diff

diff --git a/Installation/lib/cmake/CGAL/CGALConfig.cmake b/Installation/lib/cmake/CGAL/CGALConfig.cmake
index 4f3a16b..6edefb1 100644
--- a/Installation/lib/cmake/CGAL/CGALConfig.cmake
+++ b/Installation/lib/cmake/CGAL/CGALConfig.cmake
@@ -89,7 +89,9 @@ if (NOT CGAL_DATA_DIR)
if (EXISTS "${CMAKE_SOURCE_DIR}/../../data")
set(CGAL_DATA_DIR "${CMAKE_SOURCE_DIR}/../../data")
else()
- message(WARNING "CGAL_DATA_DIR cannot be deduced, set the variable CGAL_DATA_DIR to set the default value of CGAL::data_file_path()")
+ 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()