mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-10-25 12:37:40 +00:00
Add new configuration option ENABLE_ARMA_NO_DEBUG
When enabled, defines the ARMA_NO_DEBUG macro in Armadillo, disabling bound checking. Disabled by default, but it is set automatically to ON if ENABLE_PACKAGING is set to ON
This commit is contained in:
@@ -95,7 +95,7 @@ target_include_directories(pvt_libs
|
||||
|
||||
target_compile_definitions(pvt_libs PRIVATE -DGNSS_SDR_VERSION="${VERSION}")
|
||||
|
||||
if(CMAKE_BUILD_TYPE MATCHES Rel)
|
||||
if(ENABLE_ARMA_NO_DEBUG)
|
||||
target_compile_definitions(pvt_libs
|
||||
PUBLIC -DARMA_NO_BOUND_CHECKING=1
|
||||
)
|
||||
|
||||
@@ -91,7 +91,7 @@ target_include_directories(acquisition_gr_blocks
|
||||
${CMAKE_SOURCE_DIR}/src/core/receiver
|
||||
)
|
||||
|
||||
if(CMAKE_BUILD_TYPE MATCHES Rel)
|
||||
if(ENABLE_ARMA_NO_DEBUG)
|
||||
target_compile_definitions(acquisition_gr_blocks
|
||||
PUBLIC -DARMA_NO_BOUND_CHECKING=1
|
||||
)
|
||||
|
||||
@@ -118,7 +118,7 @@ if(ENABLE_OPENCL)
|
||||
)
|
||||
endif()
|
||||
|
||||
if(CMAKE_BUILD_TYPE MATCHES Rel)
|
||||
if(ENABLE_ARMA_NO_DEBUG)
|
||||
target_compile_definitions(algorithms_libs
|
||||
PUBLIC -DARMA_NO_BOUND_CHECKING=1
|
||||
)
|
||||
|
||||
@@ -40,7 +40,7 @@ set(TELEMETRY_DECODER_ADAPTER_HEADERS
|
||||
glonass_l1_ca_telemetry_decoder.h
|
||||
glonass_l2_ca_telemetry_decoder.h
|
||||
beidou_b1i_telemetry_decoder.h
|
||||
beidou_b3i_telemetry_decoder.h
|
||||
beidou_b3i_telemetry_decoder.h
|
||||
)
|
||||
|
||||
list(SORT TELEMETRY_DECODER_ADAPTER_HEADERS)
|
||||
|
||||
@@ -109,7 +109,7 @@ if(ENABLE_CUDA AND NOT CMAKE_VERSION VERSION_GREATER 3.11)
|
||||
)
|
||||
endif()
|
||||
|
||||
if(CMAKE_BUILD_TYPE MATCHES Rel)
|
||||
if(ENABLE_ARMA_NO_DEBUG)
|
||||
target_compile_definitions(tracking_gr_blocks
|
||||
PUBLIC -DARMA_NO_BOUND_CHECKING=1
|
||||
)
|
||||
|
||||
@@ -134,7 +134,7 @@ if(OS_IS_MACOSX)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CMAKE_BUILD_TYPE MATCHES Rel)
|
||||
if(ENABLE_ARMA_NO_DEBUG)
|
||||
target_compile_definitions(tracking_libs
|
||||
PUBLIC -DARMA_NO_BOUND_CHECKING=1
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user