Skip to content

Instantly share code, notes, and snippets.

@samdmarshall
Created September 27, 2016 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samdmarshall/0a31533493e91e8013ae12580d939494 to your computer and use it in GitHub Desktop.
Save samdmarshall/0a31533493e91e8013ae12580d939494 to your computer and use it in GitHub Desktop.
string(REPLACE " " ";" BUILD_ARCHITECTURES $ENV{ARCHS})
set(CMAKE_OSX_ARCHITECTURES ${BUILD_ARCHITECTURES})
execute_process(COMMAND xcrun --show-sdk-path --sdk $ENV{PLATFORM_NAME} OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE CMAKE_OSX_SYSROOT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment