diff options
author | Doug Geiger <doug.geiger@bioradiation.net> | 2014-09-24 20:54:21 -0400 |
---|---|---|
committer | Doug Geiger <doug.geiger@bioradiation.net> | 2014-09-24 20:54:21 -0400 |
commit | 27e90ddc74b61248b10495408d3d347acb318699 (patch) | |
tree | f4f3171ecfe900a3a2657918547b02058e3fe114 /volk/lib | |
parent | 6e1207475b6942a341466cc367e77eb79dae931e (diff) |
Fatal error when using cmake < 2.8.10 on ARM NEON
Address issue #733: This makes the known issue of building VOLK for ARM NEON with
CMake version < 2.8.10 a fatal error at cmake time, and gives a message to that effect.
This is considered preferable to a linking error towards the end of the build.
Diffstat (limited to 'volk/lib')
-rw-r--r-- | volk/lib/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/volk/lib/CMakeLists.txt b/volk/lib/CMakeLists.txt index 202418af2d..386237bf65 100644 --- a/volk/lib/CMakeLists.txt +++ b/volk/lib/CMakeLists.txt @@ -428,6 +428,12 @@ if(${CMAKE_VERSION} VERSION_GREATER "2.8.9") else(${CMAKE_VERSION} VERSION_GREATER "2.8.9") message(STATUS "Not enabling ASM support. CMake >= 2.8.10 required.") + foreach(machine_name ${available_machines}) + string(REGEX MATCH "neon" NEON_MACHINE ${machine_name}) + if( NEON_MACHINE STREQUAL "neon") + message(FATAL_ERROR "CMake >= 2.8.10 is required for ARM NEON support") + endif() + endforeach() endif(${CMAKE_VERSION} VERSION_GREATER "2.8.9") ######################################################################## |