mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-02 13:17:48 -04:00
cmake: added a flag to indicate if we are compiling on a Raspberry Pi host
This commit is contained in:
parent
7eea9fa321
commit
8a24d172da
@ -23,6 +23,7 @@ option(V4L-RTL "Use Linux Kernel RTL-SDR Source." OFF)
|
|||||||
option(V4L-MSI "Use Linux Kernel MSI2500 Source." OFF)
|
option(V4L-MSI "Use Linux Kernel MSI2500 Source." OFF)
|
||||||
option(BUILD_TYPE "Build type (RELEASE, RELEASEWITHDBGINFO, DEBUG" RELEASE)
|
option(BUILD_TYPE "Build type (RELEASE, RELEASEWITHDBGINFO, DEBUG" RELEASE)
|
||||||
option(DEBUG_OUTPUT "Print debug messages" OFF)
|
option(DEBUG_OUTPUT "Print debug messages" OFF)
|
||||||
|
option(HOST_RPI3 "Compiling on RPi3" OFF)
|
||||||
|
|
||||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
|
||||||
|
|
||||||
@ -445,6 +446,10 @@ include_directories(
|
|||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
if (HOST_RPI3)
|
||||||
|
message( STATUS "Compiling on RPi3" )
|
||||||
|
endif()
|
||||||
|
|
||||||
EXECUTE_PROCESS( COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE ARCHITECTURE )
|
EXECUTE_PROCESS( COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE ARCHITECTURE )
|
||||||
message( STATUS "Architecture: ${ARCHITECTURE}" )
|
message( STATUS "Architecture: ${ARCHITECTURE}" )
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user