Skip to content

Instantly share code, notes, and snippets.

@siuying
Created May 7, 2020 12:35
Show Gist options
  • Save siuying/8eed3426c49d3a68da52920cfc858bd4 to your computer and use it in GitHub Desktop.
Save siuying/8eed3426c49d3a68da52920cfc858bd4 to your computer and use it in GitHub Desktop.
build catalyst in cmake
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