Robustify cross-compilation

This commit is contained in:
Carles Fernandez 2020-04-08 10:51:46 +02:00
parent 0bec24e593
commit a49df87704
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
2 changed files with 7 additions and 1 deletions

View File

@ -15,6 +15,10 @@ SPDX-FileCopyrightText: 2011-2020 Carles Fernandez-Prades <carles.fernandez@cttc
- The software can now be built against the GNU Radio 3.9 API that uses C++11
smart pointers instead of Boost smart pointers.
### Improvements in Portability:
- The software can now be cross-compiled on Petalinux environments.
### Improvements in Reproducibility:
- Improved reproducibility of the volk_gnsssdr library: Drop compile-time CPU

View File

@ -677,7 +677,9 @@ if(ENABLE_SYSTEM_TESTING)
)
add_system_test(position_test)
if(NOT GNSSSIMULATOR_FOUND OR ENABLE_GNSS_SIM_INSTALL)
add_dependencies(position_test gnss-sim)
if(NOT CMAKE_CROSSCOMPILING)
add_dependencies(position_test gnss-sim)
endif()
endif()
else()
# Avoid working with old executables if they were switched ON and then OFF