Skip to content

Commit

Permalink
fix cmake toolchain arm32 path and warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Nov 22, 2021
1 parent f9d3edb commit c102ba6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion dist/lib/aarch64.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)

# specify the cross compiler
SET(CMAKE_C_COMPILER /usr/bin/aarch64-linux-gnu-gcc)
Expand Down
7 changes: 3 additions & 4 deletions dist/lib/arm.cmake
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)

# specify the cross compiler
SET(CMAKE_C_COMPILER /usr/bin/gcc-arm-linux-gnueabihf-gcc)
SET(CMAKE_CXX_COMPILER /usr/bin/gcc-arm-linux-gnueabihf-g++)
SET(CMAKE_C_COMPILER /usr/bin/arm-linux-gnueabihf-gcc)
SET(CMAKE_CXX_COMPILER /usr/bin/arm-linux-gnueabihf-g++)

# where is the target environment
SET(CMAKE_FIND_ROOT_PATH /usr/gcc-arm-linux-gnueabihf)
SET(CMAKE_FIND_ROOT_PATH /usr/arm-linux-gnueabihf)

# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
Expand Down

0 comments on commit c102ba6

Please sign in to comment.