summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7124970f34..44a6d96b33 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -175,9 +175,9 @@ else()
# Ensure that objcopy is present
if(DEFINED ENV{CROSSCOMPILE})
if(CMAKE_SYSTEM_PROCESSOR STREQUAL armv7l)
- find_program(OBJCOPY arm-linux-gnueabihf-objcopy)
+ find_program(OBJCOPY ${TOOLCHAIN}-objcopy)
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL aarch64)
- find_program(OBJCOPY aarch64-linux-gnu-objcopy)
+ find_program(OBJCOPY ${TOOLCHAIN}-objcopy)
else()
clr_unknown_arch()
endif()