diff options
author | Jukka Ojanen <jukka.ojanen@linkotec.net> | 2015-03-11 15:31:16 +0200 |
---|---|---|
committer | Jukka Ojanen <jukka.ojanen@linkotec.net> | 2015-03-11 15:31:16 +0200 |
commit | 4bd30d719919afeda7ec1369b124f661121d69ef (patch) | |
tree | 04078d688f9f10b2c756facb6e90607352539781 | |
parent | 9ba8731f20a6bf6771f9a9812268c8bf958134c6 (diff) | |
download | ffts-4bd30d719919afeda7ec1369b124f661121d69ef.zip ffts-4bd30d719919afeda7ec1369b124f661121d69ef.tar.gz |
Added "-mfloat-abi=softfp" as default for ARM
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0acf710..537da41 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -135,10 +135,12 @@ if(ENABLE_NEON) else() list(APPEND FFTS_SOURCES src/neon.s - src/arch/neon.c ) endif(DISABLE_DYNAMIC_CODE) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfpu=neon") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfloat-abi=softfp") + add_definitions(-DHAVE_NEON) elseif(ENABLE_VFP) if(NOT DISABLE_DYNAMIC_CODE) @@ -148,6 +150,8 @@ elseif(ENABLE_VFP) endif(NOT DISABLE_DYNAMIC_CODE) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfpu=vfp") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfloat-abi=softfp") + add_definitions(-DHAVE_VFP) elseif(HAVE_XMMINTRIN_H) add_definitions(-DHAVE_SSE) |