Skip to content

Commit

Permalink
Work around missing UseCGAL.cmake
Browse files Browse the repository at this point in the history
CGAL 6 no longer provides UseCGAL.cmake.
We probably don't need it (we use other variables
which are set by the CGAL's CMake config) so
just skip it if not provided. Closes #1100.
  • Loading branch information
benmwebb committed Oct 2, 2024
1 parent 56b9461 commit 7cb8855
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/cgal/Setup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ file(WRITE "${CMAKE_BINARY_DIR}/build_info/CGAL" "ok=True")
set(CGAL_DONT_OVERRIDE_CMAKE_FLAGS TRUE CACHE BOOL "Don't override flags")
# Ignore CGAL_CXX_FLAGS from previous cmake run, if any
set( CGAL_CXX_FLAGS "" CACHE INTERNAL "" FORCE)
include(${CGAL_USE_FILE})
if (DEFINED CGAL_USE_FILE)
include(${CGAL_USE_FILE})
endif()
# Set "standard" include/link variables from CGAL's
set(CGAL_INCLUDE_PATH ${CGAL_INCLUDE_DIRS} CACHE INTERNAL "" FORCE)
set(CGAL_LINK_PATH ${CGAL_LIBRARIES_DIR} CACHE INTERNAL "" FORCE)
Expand Down

0 comments on commit 7cb8855

Please sign in to comment.