mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-04-06 18:57:02 +00:00
Simplify CMake scripts
This commit is contained in:
parent
d029bf405b
commit
ee84f60fb4
@ -535,6 +535,9 @@ set_package_properties(GNURADIO PROPERTIES
|
||||
TYPE REQUIRED
|
||||
)
|
||||
|
||||
if(NOT (GNURADIO_VERSION VERSION_LESS "3.8"))
|
||||
set(GNURADIO_IS_38_OR_GREATER ON)
|
||||
endif()
|
||||
|
||||
|
||||
################################################################################
|
||||
|
@ -54,7 +54,7 @@ target_link_libraries(input_filter_adapters
|
||||
Volk::volk
|
||||
)
|
||||
|
||||
if(NOT (GNURADIO_VERSION VERSION_LESS "3.8"))
|
||||
if(GNURADIO_IS_38_OR_GREATER)
|
||||
target_compile_definitions(input_filter_adapters PUBLIC -DGR_GREATER_38=1)
|
||||
endif()
|
||||
|
||||
|
@ -51,7 +51,7 @@ target_include_directories(resampler_adapters
|
||||
${CMAKE_SOURCE_DIR}/src/core/interfaces
|
||||
)
|
||||
|
||||
if(NOT (GNURADIO_VERSION VERSION_LESS "3.8"))
|
||||
if(GNURADIO_IS_38_OR_GREATER)
|
||||
target_compile_definitions(resampler_adapters PUBLIC -DGR_GREATER_38=1)
|
||||
endif()
|
||||
|
||||
|
@ -73,7 +73,7 @@ if(ENABLE_RAW_UDP)
|
||||
target_compile_definitions(core_receiver PRIVATE -DRAW_UDP=1)
|
||||
endif()
|
||||
|
||||
if(NOT (GNURADIO_VERSION VERSION_LESS "3.8"))
|
||||
if(GNURADIO_IS_38_OR_GREATER)
|
||||
target_compile_definitions(core_receiver PRIVATE -DGR_GREATER_38=1)
|
||||
endif()
|
||||
|
||||
|
@ -213,7 +213,7 @@ endif()
|
||||
# Definitions
|
||||
################################################################################
|
||||
|
||||
if(NOT (GNURADIO_VERSION VERSION_LESS "3.8"))
|
||||
if(GNURADIO_IS_38_OR_GREATER)
|
||||
add_definitions(-DGR_GREATER_38=1)
|
||||
endif()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user