mirror of
https://github.com/3cky/mbusd.git
synced 2024-09-28 03:57:48 +02:00
Merge pull request #42 from nickma82/CPack-architecture
cmake armhf: set CPack architecture
This commit is contained in:
commit
8a29a0e029
@ -1,5 +1,6 @@
|
|||||||
# this one is important
|
# this one is important
|
||||||
SET(CMAKE_SYSTEM_NAME Linux)
|
SET(CMAKE_SYSTEM_NAME Linux)
|
||||||
|
SET(CMAKE_SYSTEM_PROCESSOR armhf)
|
||||||
|
|
||||||
# specify the cross compiler
|
# specify the cross compiler
|
||||||
SET(CMAKE_C_COMPILER /usr/bin/arm-linux-gnueabihf-gcc)
|
SET(CMAKE_C_COMPILER /usr/bin/arm-linux-gnueabihf-gcc)
|
||||||
@ -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_PROGRAM NEVER)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE 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)
|
||||||
|
Loading…
Reference in New Issue
Block a user