mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-18 21:23:02 +00:00
Fix the -DENABLE_LOG=OFF building option
This commit is contained in:
parent
a82664d345
commit
303e95dd32
@ -1581,6 +1581,13 @@ endif()
|
||||
|
||||
if(NOT ENABLE_LOG)
|
||||
message(STATUS "Logging is not enabled")
|
||||
if(CMAKE_VERSION VERSION_GREATER 3.11.0)
|
||||
target_compile_definitions(Glog::glog INTERFACE -DGOOGLE_STRIP_LOG=1)
|
||||
else()
|
||||
set_property(TARGET Glog::glog APPEND PROPERTY
|
||||
INTERFACE_COMPILE_DEFINITIONS GOOGLE_STRIP_LOG=1
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
|
@ -81,6 +81,10 @@ SPDX-FileCopyrightText: 2011-2020 Carles Fernandez-Prades <carles.fernandez@cttc
|
||||
per sample.
|
||||
- Fixed a bug in signal sources that made the number of samples parameter
|
||||
ignored when too large (that is, larger than 2^31-1).
|
||||
- Fixed the building option `-DENABLE_LOG=OFF`, which strips internal logging
|
||||
from the binary and can help to reduce its size and speed up the receiver. In
|
||||
binaries with enabled logging, it can be still disabled by passing the command
|
||||
line flag `--minloglevel=3` to `gnss-sdr`.
|
||||
|
||||
|
||||
|
||||
|
@ -38,11 +38,6 @@ target_link_libraries(gnss-sdr
|
||||
|
||||
target_compile_definitions(gnss-sdr PRIVATE -DGNSS_SDR_VERSION="${VERSION}")
|
||||
|
||||
# Disable internal logging
|
||||
if(NOT ENABLE_LOG)
|
||||
target_compile_definitions(gnss-sdr PRIVATE -DGOOGLE_STRIP_LOG=1)
|
||||
endif()
|
||||
|
||||
if(ENABLE_CUDA)
|
||||
if(NOT CMAKE_VERSION VERSION_GREATER 3.11)
|
||||
target_link_libraries(gnss-sdr
|
||||
|
Loading…
Reference in New Issue
Block a user