From a0da65ed8a8b741b3a7377d1dbbaa06a78fd96ac Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Fri, 1 Nov 2019 20:24:39 +0100 Subject: [PATCH] Fix compiler flags when using CMAKE_TOOLCHAIN_FILE in ARM processors --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dd97b7508..9f604de06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2528,7 +2528,7 @@ if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND NOT WIN32) if(IS_ARM) # ARM-specific options # See https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html - if(NOT CMAKE_CROSSCOMPILING) + if(NOT CMAKE_CROSSCOMPILING AND NOT CMAKE_TOOLCHAIN_FILE) add_compile_options(-mcpu=native) endif() else()