Skip to content

Instantly share code, notes, and snippets.

@mbaranowski
Created October 25, 2012 12:30
Show Gist options
  • Save mbaranowski/3952316 to your computer and use it in GitHub Desktop.
Save mbaranowski/3952316 to your computer and use it in GitHub Desktop.
command line to build with cmake for iphone
export ios_version=6.0
cmake --debug -DCMAKE_C_COMPILER_WORKS:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=OFF -DCMAKE_C_COMPILER=/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang -DCMAKE_OSX_ARCHITECTURES:STRING=armv7 -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS${ios_version}.sdk/ ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment