Created
May 7, 2020 12:35
-
-
Save siuying/8eed3426c49d3a68da52920cfc858bd4 to your computer and use it in GitHub Desktop.
build catalyst in cmake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake -G Xcode .. -DCMAKE_SYSTEM_NAME=iOS \ | |
-DCMAKE_OSX_ARCHITECTURES=x86_64 \ | |
-DCMAKE_OSX_SYSROOT=/Applications/Xcode_11.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk \ | |
-DCMAKE_CXX_FLAGS="-target x86_64-apple-ios13.1-macabi -iframework ${CMAKE_OSX_SYSROOT}/System/iOSSupport/System/Library/Frameworks" \ | |
-DCMAKE_C_FLAGS="-target x86_64-apple-ios13.1-macabi -iframework ${CMAKE_OSX_SYSROOT}/System/iOSSupport/System/Library/Frameworks" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment