mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
cad/PrusaSlicer: Fix build when math/qhull is present.
Maintainer timeout. PR: 259941 Reported by: alt2600@icloud.com
This commit is contained in:
parent
b1e9af871f
commit
59fb9b948f
29
cad/PrusaSlicer/files/patch-src_qhull_CMakeLists.txt
Normal file
29
cad/PrusaSlicer/files/patch-src_qhull_CMakeLists.txt
Normal file
@ -0,0 +1,29 @@
|
||||
--- src/qhull/CMakeLists.txt.orig 2021-11-19 21:23:46.166100000 -0500
|
||||
+++ src/qhull/CMakeLists.txt 2021-11-19 21:27:12.170235000 -0500
|
||||
@@ -14,19 +14,8 @@
|
||||
|
||||
add_library(qhull INTERFACE)
|
||||
|
||||
-if(Qhull_FOUND)
|
||||
+#force use of bundled qhull#else(Qhull_FOUND)
|
||||
|
||||
-message(STATUS "Using qhull from system.")
|
||||
-if(SLIC3R_STATIC)
|
||||
- slic3r_remap_configs("Qhull::qhullcpp;Qhull::qhullstatic_r" RelWithDebInfo Release)
|
||||
- target_link_libraries(qhull INTERFACE Qhull::qhullcpp Qhull::qhullstatic_r)
|
||||
-else()
|
||||
- slic3r_remap_configs("Qhull::qhullcpp;Qhull::qhull_r" RelWithDebInfo Release)
|
||||
- target_link_libraries(qhull INTERFACE Qhull::qhullcpp Qhull::qhull_r)
|
||||
-endif()
|
||||
-
|
||||
-else(Qhull_FOUND)
|
||||
-
|
||||
project(qhull)
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
|
||||
@@ -144,4 +133,4 @@
|
||||
target_include_directories(${qhull_STATIC} BEFORE PUBLIC ${LIBDIR}/qhull/src)
|
||||
target_link_libraries(qhull INTERFACE ${qhull_STATIC})
|
||||
|
||||
-endif()
|
||||
+#force use of bundled qhull##endif()
|
Loading…
Reference in New Issue
Block a user