Skip to content

Commit

Permalink
CORE no longer requires GMP so link only if available
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Mar 14, 2024
1 parent 24015ce commit 87ab37e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ set_property(GLOBAL PROPERTY CGAL_Core_FOUND TRUE)

function(CGAL_setup_CGAL_Core_dependencies target)
find_package( Boost 1.70 REQUIRED )
use_CGAL_GMP_support(CGAL_Core INTERFACE)
if (!CGAL_DISABLE_GMP AND GMP_FOUND)
use_CGAL_GMP_support(CGAL_Core INTERFACE)
endif()
target_compile_definitions(${target} INTERFACE CGAL_USE_CORE=1)
target_link_libraries( CGAL_Core INTERFACE CGAL::CGAL )
endfunction()

0 comments on commit 87ab37e

Please sign in to comment.