1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-11-03 08:43:04 +00:00

No Armadillo bound checking if compiled in Release mode

This commit is contained in:
Carles Fernandez
2019-07-29 21:22:44 +02:00
parent 271399fc22
commit 4933ae3e0d
15 changed files with 73 additions and 4 deletions

View File

@@ -130,6 +130,12 @@ if(OPENCL_FOUND)
)
endif()
if(CMAKE_BUILD_TYPE MATCHES Rel)
target_compile_definitions(algorithms_libs
PUBLIC -DARMA_NO_BOUND_CHECKING=1
)
endif()
target_include_directories(algorithms_libs
PUBLIC
${CMAKE_SOURCE_DIR}/src/core/interfaces

View File

@@ -32,6 +32,10 @@
#ifndef GNSS_SDR_GEOFUNCTIONS_H
#define GNSS_SDR_GEOFUNCTIONS_H
#if ARMA_NO_BOUND_CHECKING
#define ARMA_NO_DEBUG 1
#endif
#include <armadillo>
arma::mat Skew_symmetric(const arma::vec &a); //!< Calculates skew-symmetric matrix