mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 03:46:05 +08:00
Fix of previous commit
This commit is contained in:
parent
2e795b38c4
commit
7cc76c4aa6
25
deps/CMakeLists.txt
vendored
25
deps/CMakeLists.txt
vendored
@ -129,19 +129,6 @@ else()
|
|||||||
include("deps-linux.cmake")
|
include("deps-linux.cmake")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Patch the boost::polygon library with a custom one.
|
|
||||||
ExternalProject_Add(dep_boost_polygon
|
|
||||||
EXCLUDE_FROM_ALL ON
|
|
||||||
GIT_REPOSITORY "https://github.com/prusa3d/polygon"
|
|
||||||
GIT_TAG prusaslicer_gmp
|
|
||||||
DEPENDS dep_boost
|
|
||||||
CONFIGURE_COMMAND ""
|
|
||||||
BUILD_COMMAND ""
|
|
||||||
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory
|
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/dep_boost_polygon-prefix/src/dep_boost_polygon/include/boost/polygon"
|
|
||||||
"${DESTDIR}/usr/local/include/boost/polygon"
|
|
||||||
)
|
|
||||||
|
|
||||||
set(ZLIB_PKG "")
|
set(ZLIB_PKG "")
|
||||||
if (NOT ZLIB_FOUND)
|
if (NOT ZLIB_FOUND)
|
||||||
include(ZLIB/ZLIB.cmake)
|
include(ZLIB/ZLIB.cmake)
|
||||||
@ -187,6 +174,18 @@ set(_dep_list
|
|||||||
)
|
)
|
||||||
|
|
||||||
if ("${CMAKE_SIZEOF_VOID_P}" STREQUAL "8")
|
if ("${CMAKE_SIZEOF_VOID_P}" STREQUAL "8")
|
||||||
|
# Patch the boost::polygon library with a custom one.
|
||||||
|
ExternalProject_Add(dep_boost_polygon
|
||||||
|
EXCLUDE_FROM_ALL ON
|
||||||
|
GIT_REPOSITORY "https://github.com/prusa3d/polygon"
|
||||||
|
GIT_TAG prusaslicer_gmp
|
||||||
|
DEPENDS dep_boost
|
||||||
|
CONFIGURE_COMMAND ""
|
||||||
|
BUILD_COMMAND ""
|
||||||
|
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||||
|
"${CMAKE_CURRENT_BINARY_DIR}/dep_boost_polygon-prefix/src/dep_boost_polygon/include/boost/polygon"
|
||||||
|
"${DESTDIR}/usr/local/include/boost/polygon"
|
||||||
|
)
|
||||||
# Only override boost::Polygon Voronoi implementation with Vojtech's GMP hacks on 64bit platforms.
|
# Only override boost::Polygon Voronoi implementation with Vojtech's GMP hacks on 64bit platforms.
|
||||||
list(APPEND _dep_list "dep_boost_polygon")
|
list(APPEND _dep_list "dep_boost_polygon")
|
||||||
endif ()
|
endif ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user