mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-27 02:41:17 +00:00
- GMP: name the parameters in the configure probe from 0001-GMP_GCC15.patch. Unnamed parameters are a hard error on GCC 10 and older, so configure failed there. - TBB: turn off the automatic hwloc search so a system libhwloc-dev is not picked up. - scripts/linux.d/debian: run apt update before checking which webkit2gtk package exists, and prefer webkit2gtk-4.1 since the build requires it. Add automake, which MPFR's autoreconf needs.
30 lines
950 B
CMake
30 lines
950 B
CMake
if (MSVC)
|
|
set(_patch_command ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_LIST_DIR}/MSVC.cmake ./cmake/compilers/MSVC.cmake)
|
|
elseif (FLATPAK AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
|
set(_patch_command ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_LIST_DIR}/GNU.cmake ./cmake/compilers/GNU.cmake)
|
|
else()
|
|
set(_patch_command "")
|
|
endif()
|
|
|
|
orcaslicer_add_cmake_project(
|
|
TBB
|
|
URL "https://github.com/oneapi-src/oneTBB/archive/refs/tags/v2021.5.0.zip"
|
|
URL_HASH SHA256=83ea786c964a384dd72534f9854b419716f412f9d43c0be88d41874763e7bb47
|
|
PATCH_COMMAND ${_patch_command}
|
|
CMAKE_ARGS
|
|
-DTBB_BUILD_SHARED=OFF
|
|
-DTBB_BUILD_TESTS=OFF
|
|
-DTBB_TEST=OFF
|
|
-DTBB_DISABLE_HWLOC_AUTOMATIC_SEARCH=ON
|
|
-DTBB_ENABLE_IPO=OFF
|
|
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
|
-DCMAKE_DEBUG_POSTFIX=_debug
|
|
)
|
|
|
|
if (MSVC)
|
|
add_debug_dep(dep_TBB)
|
|
endif ()
|
|
|
|
|