Use AVR_TOOLCHAIN_DIR correctly

Probably copy/paste typos.
pull/20/head
Yuri D'Elia 2021-06-11 18:04:32 +02:00
parent 019f74d6f2
commit 09c69ca8ed
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ set(TOOLCHAIN_PREFIX avr-)
# Looking up the toolchain
#
if(GCC_TOOLCHAIN_DIR)
if(AVR_TOOLCHAIN_DIR)
# using toolchain set by AvrGcc.cmake (locked version)
set(BINUTILS_PATH "${AVR_TOOLCHAIN_DIR}/bin")
else()
@ -80,7 +80,7 @@ set(CMAKE_SIZE_UTIL
CACHE INTERNAL "size tool"
)
set(CMAKE_FIND_ROOT_PATH "${ARM_TOOLCHAIN_DIR}")
set(CMAKE_FIND_ROOT_PATH "${AVR_TOOLCHAIN_DIR}")
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)