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)