mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-13 19:50:34 +00:00
Merge branch 'next' of https://github.com/gnss-sdr/gnss-sdr into pps_lime
This commit is contained in:
commit
877ff2e7a0
@ -1134,6 +1134,10 @@ if(NOT VOLKGNSSSDR_FOUND)
|
||||
set(VOLK_GNSSSDR_CMAKE_ARGS ${VOLK_GNSSSDR_CMAKE_ARGS}
|
||||
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_SOURCE_DIR}/cmake/Toolchains/oe-sdk_cross.cmake
|
||||
)
|
||||
else()
|
||||
set(VOLK_GNSSSDR_CMAKE_ARGS ${VOLK_GNSSSDR_CMAKE_ARGS}
|
||||
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
|
||||
)
|
||||
endif()
|
||||
else()
|
||||
if(CMAKE_TOOLCHAIN_FILE)
|
||||
@ -1142,6 +1146,9 @@ if(NOT VOLKGNSSSDR_FOUND)
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^cortex")
|
||||
set(CMAKE_SYSTEM_PROCESSOR arm-${CMAKE_SYSTEM_PROCESSOR})
|
||||
endif()
|
||||
include(GNUInstallDirs)
|
||||
set(SUPPORTED_CPU_FEATURES_ARCH FALSE)
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^mips")
|
||||
|
@ -246,6 +246,10 @@ endif()
|
||||
# cpu_features
|
||||
option(ENABLE_OWN_CPUFEATURES "Force the building of the cpu_features library even if it is already installed" OFF)
|
||||
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^cortex")
|
||||
set(CMAKE_SYSTEM_PROCESSOR arm-${CMAKE_SYSTEM_PROCESSOR})
|
||||
endif()
|
||||
|
||||
set(SUPPORTED_CPU_FEATURES_ARCH FALSE)
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^mips")
|
||||
set(SUPPORTED_CPU_FEATURES_ARCH TRUE)
|
||||
|
@ -23,16 +23,6 @@ if(NOT CMAKE_BUILD_TYPE)
|
||||
FORCE)
|
||||
endif()
|
||||
|
||||
# Workaround for cross-compilation with SDK
|
||||
if(DEFINED ENV{OECORE_TARGET_SYSROOT})
|
||||
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/Toolchains/oe-sdk_cross.cmake)
|
||||
set(CMAKE_CROSSCOMPILING ON)
|
||||
include(${CMAKE_TOOLCHAIN_FILE})
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^cortexa9hf")
|
||||
set(CMAKE_SYSTEM_PROCESSOR arm-${CMAKE_SYSTEM_PROCESSOR})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# BUILD_TESTING is a standard CMake variable, but we declare it here to make it
|
||||
# prominent in the GUI.
|
||||
option(BUILD_TESTING "Enable test (depends on googletest)." OFF)
|
||||
|
Loading…
Reference in New Issue
Block a user