Skip to content

Commit

Permalink
cmake armhf: set CPack architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
nickma82 committed Jan 9, 2019
1 parent b5e3c53 commit c7efb2a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/arm_linux_gnueabihf.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# this one is important
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_PROCESSOR armhf)

# specify the cross compiler
SET(CMAKE_C_COMPILER /usr/bin/arm-linux-gnueabihf-gcc)
Expand All @@ -9,4 +10,7 @@ SET(CMAKE_C_COMPILER /usr/bin/arm-linux-gnueabihf-gcc)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)

# set the architecture for CPack (i.e packageing)
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE armhf)

0 comments on commit c7efb2a

Please sign in to comment.