cmake: added a flag to indicate if we are compiling on a Raspberry Pi host

This commit is contained in:
f4exb 2017-06-19 08:38:00 +02:00
parent 8a24d172da
commit 30a5ce834d
1 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ option(V4L-RTL "Use Linux Kernel RTL-SDR Source." OFF)
option(V4L-MSI "Use Linux Kernel MSI2500 Source." OFF)
option(BUILD_TYPE "Build type (RELEASE, RELEASEWITHDBGINFO, DEBUG" RELEASE)
option(DEBUG_OUTPUT "Print debug messages" OFF)
option(HOST_RPI3 "Compiling on RPi3" OFF)
option(HOST_RPI "Compiling on RPi" OFF)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
@ -446,8 +446,8 @@ include_directories(
##############################################################################
if (HOST_RPI3)
message( STATUS "Compiling on RPi3" )
if (HOST_RPI)
message( STATUS "Compiling on RPi" )
endif()
EXECUTE_PROCESS( COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE ARCHITECTURE )