Skip to content

Instantly share code, notes, and snippets.

@simonlynen
Created May 8, 2013 12:27
Show Gist options
  • Save simonlynen/5540117 to your computer and use it in GitHub Desktop.
Save simonlynen/5540117 to your computer and use it in GitHub Desktop.
detect arm cmake
IF(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm")
add_definitions (-mfloat-abi=softfp -mfpu=neon)
ELSE(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm")
ENDIF(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment