Fix for CGAL relocation fix. Wrong libdir was used.
This commit is contained in:
parent
c9dcf3e865
commit
8f655242eb
1 changed files with 6 additions and 1 deletions
7
deps/CGAL/CGAL.cmake
vendored
7
deps/CGAL/CGAL.cmake
vendored
|
@ -8,8 +8,13 @@ prusaslicer_add_cmake_project(
|
|||
DEPENDS dep_boost dep_GMP dep_MPFR
|
||||
)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
# CGAL, for whatever reason, makes itself non-relocatable by writing the build directory into
|
||||
# CGALConfig-installation-dirs.cmake and including it in configure time.
|
||||
# If this file is not present, it will not consider the stored absolute path
|
||||
ExternalProject_Add_Step(dep_CGAL dep_CGAL_relocation_fix
|
||||
DEPENDEES install
|
||||
COMMAND ${CMAKE_COMMAND} -E remove CGALConfig-installation-dirs.cmake
|
||||
WORKING_DIRECTORY "${DESTDIR}/usr/local/lib/cmake/CGAL"
|
||||
WORKING_DIRECTORY "${DESTDIR}/usr/local/${CMAKE_INSTALL_LIBDIR}/cmake/CGAL"
|
||||
)
|
Loading…
Reference in a new issue