run-cmake.bat - use cgal config instead of explicit paths

This commit is contained in:
Andrej730
2025-12-11 17:27:30 +05:00
parent 71a36147a6
commit 20d6547e54
3 changed files with 20 additions and 17 deletions
+3
View File
@@ -46,6 +46,9 @@ else()
else()
set(CGAL_Boost_USE_STATIC_LIBS "${Boost_USE_STATIC_LIBS}")
endif()
# Annoyingly this is producing CMP0167 boost warnings, because it's unsetting cmake policies
# and using FindBoost module. But there's nothing we can do about it,
# since everything happens in the scope of CGAL config. I guess it's be resolved in CGAL 6.1.0.
find_package(CGAL CONFIG)
if(NOT CGAL_FOUND)
message(