diff --git a/CMakeLists.txt b/CMakeLists.txt index 04adcc66d..3da74db4e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -515,7 +515,9 @@ if(NOT OS_IS_MACOSX) set(CMAKE_NO_SYSTEM_FROM_IMPORTED TRUE) endif() else() - include(TestForARM) + if(NOT IS_ARM) + include(TestForARM) + endif() endif() endif()