[Craft] [Bug 448443] Support blueprint building on M1 darwin arm64
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Fri Jan 14 07:55:51 GMT 2022
https://bugs.kde.org/show_bug.cgi?id=448443
--- Comment #1 from turx2003 at gmail.com ---
One way I found to solve it is to add the following to each CMakeLists.txt
if(APPLE)
option(OSX_FRAMEWORK "Build a Mac OS X Framework" ON)
set(CMAKE_OSX_ARCHITECTURES “x86_64;arm64" CACHE STRING "Build architectures
for Mac OS X" FORCE)
else()
set(OSX_FRAMEWORK OFF)
endif()
or pass -DCMAKE_OSX_ARCHITECTURES=x86_64;arm64 to cmake
The current build system builds for x86_64 anytime, and the above command is to
enable the universal binary build. If we only want to build for one arch at a
time, we can change it to “arm64” in case of a build for M1.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the kde-mac
mailing list