Skip to content

Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.

macOS: build Focus Detail with its own codec (Homebrew zstd broke the universal package)

islandmedd18cd4d4df34
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a0671b91..5805b256 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -204,8 +204,9 @@ endif()
find_package(Threads REQUIRED)
target_link_libraries(sculptforge_core PUBLIC glm::glm Threads::Threads)
# zstd for Focus Detail tiles (core/FocusDetail.h), when the system has it; without it the tiles use our own codec.
+# Not on macOS: Homebrew's zstd is single-architecture and breaks the universal (x86_64 + arm64) build.
find_package(PkgConfig QUIET)
-if(PkgConfig_FOUND)
+if(PkgConfig_FOUND AND NOT APPLE)
pkg_check_modules(SF_ZSTD QUIET IMPORTED_TARGET libzstd)
endif()
if(SF_ZSTD_FOUND)