1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-02-14 18:10:10 +00:00

Fix cross-compilation when not using a toolchain file (Fixes: #350)

This commit is contained in:
Carles Fernandez 2020-01-19 11:42:15 +01:00
parent 087cea32b4
commit 7b4523a60d
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -832,7 +832,7 @@ if(NOT VOLKGNSSSDR_FOUND)
endif()
endif()
if(CMAKE_CROSSCOMPILING)
if(CMAKE_TOOLCHAIN_FILE)
set(VOLK_GNSSSDR_COMPILER "")
else()
set(VOLK_GNSSSDR_COMPILER -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER})