mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
cmake: drop duplicated logic for finding gmp/mpfr
It also didn't propagate cgal includes for non-cmake configs.
So it means since roughly 0555523, when `CGAL_INCLUDE_DIR` was dropped from global includes, we only supported cmake configs discovery for cgal, so it's a good evidence to drop non-cmake config discovery in general.
This commit is contained in:
+1
-14
@@ -611,21 +611,8 @@ endif()
|
|||||||
|
|
||||||
if(BUILD_IFCGEOM)
|
if(BUILD_IFCGEOM)
|
||||||
# CGAL::CGAL target already has dependencies resolved.
|
# CGAL::CGAL target already has dependencies resolved.
|
||||||
if(WITH_CGAL AND CGAL_DIR)
|
if(WITH_CGAL)
|
||||||
set(CGAL_LIBRARIES CGAL::CGAL)
|
set(CGAL_LIBRARIES CGAL::CGAL)
|
||||||
message(STATUS "Using found CGAL package at '${CGAL_DIR}'")
|
|
||||||
elseif(WITH_CGAL AND NOT CGAL_DIR)
|
|
||||||
find_library(libGMP NAMES gmp mpir PATHS ${GMP_LIBRARY_DIR} NO_DEFAULT_PATH)
|
|
||||||
find_library(libMPFR NAMES mpfr PATHS ${MPFR_LIBRARY_DIR} NO_DEFAULT_PATH)
|
|
||||||
if(NOT libGMP)
|
|
||||||
message(FATAL_ERROR "Unable to find GMP library files, aborting")
|
|
||||||
endif()
|
|
||||||
if(NOT libMPFR)
|
|
||||||
message(FATAL_ERROR "Unable to find MPFR library files, aborting")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
list(APPEND CGAL_LIBRARIES "${libMPFR}")
|
|
||||||
list(APPEND CGAL_LIBRARIES "${libGMP}")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(../src/ifcgeom ifcgeom)
|
add_subdirectory(../src/ifcgeom ifcgeom)
|
||||||
|
|||||||
Reference in New Issue
Block a user