mirror of
https://github.com/prusa3d/PrusaSlicer.git
synced 2026-11-26 23:29:07 +00:00
Fix compiling range-v3 dependant code in Xcode 27
This commit is contained in:
parent
63f8220525
commit
76bdb1b078
2 changed files with 19 additions and 1 deletions
|
|
@ -71,3 +71,22 @@ find_package(fmt REQUIRED)
|
|||
slic3r_remap_configs(fmt::fmt RelWithDebInfo Release)
|
||||
|
||||
find_package(Tracy REQUIRED)
|
||||
|
||||
find_package(range-v3 REQUIRED)
|
||||
|
||||
include(CheckCXXSourceCompiles)
|
||||
# range-v3's meta.hpp forward-declares std types using _LIBCPP_TEMPLATE_VIS,
|
||||
# which newer libc++ (Xcode 27 SDK) removed. See range-v3 PR #1870.
|
||||
check_cxx_source_compiles("
|
||||
#include <cstddef>
|
||||
#if defined(_LIBCPP_VERSION) && !defined(_LIBCPP_TEMPLATE_VIS)
|
||||
#error libc++ without _LIBCPP_TEMPLATE_VIS
|
||||
#endif
|
||||
int main() {}"
|
||||
SLIC3R_LIBCXX_HAS_TEMPLATE_VIS)
|
||||
|
||||
if(NOT SLIC3R_LIBCXX_HAS_TEMPLATE_VIS)
|
||||
message(STATUS "range-v3: added META_NO_STD_FORWARD_DECLARATIONS def")
|
||||
target_compile_definitions(range-v3::range-v3 INTERFACE META_NO_STD_FORWARD_DECLARATIONS)
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -1522,7 +1522,6 @@ endif ()
|
|||
|
||||
|
||||
find_package(magic_enum REQUIRED)
|
||||
find_package(range-v3 REQUIRED)
|
||||
find_package(libdeflate CONFIG REQUIRED)
|
||||
|
||||
slic3r_remap_configs("pugixml::static;yoga::yogacore;${YAML_LIB}" RelWithDebInfo Release)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue