From 17d61564c9d853184bcc63276cde0999797e3678 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Wed, 11 Mar 2015 02:16:48 -0700 Subject: [PATCH] All: All ARM targets should enable ASM --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 952f4ce3c..7e5d16429 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -132,12 +132,15 @@ if(APPLE OR CMAKE_C_COMPILER_ID STREQUAL "GNU" AND BUILD_LTO) endif() if(BUILD_BBB OR BUILD_RASPI) - enable_language(ASM) if(NOT BUILD_EGL) add_definitions(-DCOLOR_16_BIT -DCOLOR_5_6_5) endif() endif() +if(CMAKE_SYSTEM_PROCESSOR STREQUAL "arm") + enable_language(ASM) +endif() + include(CheckFunctionExists) check_function_exists(strndup HAVE_STRNDUP) check_function_exists(snprintf_l HAVE_SNPRINTF_L)