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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user