mirror of https://github.com/gnss-sdr/gnss-sdr
Simplify CMake scripts
This commit is contained in:
parent
d029bf405b
commit
ee84f60fb4
|
@ -535,6 +535,9 @@ set_package_properties(GNURADIO PROPERTIES
|
||||||
TYPE REQUIRED
|
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
|
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)
|
target_compile_definitions(input_filter_adapters PUBLIC -DGR_GREATER_38=1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ target_include_directories(resampler_adapters
|
||||||
${CMAKE_SOURCE_DIR}/src/core/interfaces
|
${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)
|
target_compile_definitions(resampler_adapters PUBLIC -DGR_GREATER_38=1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@ if(ENABLE_RAW_UDP)
|
||||||
target_compile_definitions(core_receiver PRIVATE -DRAW_UDP=1)
|
target_compile_definitions(core_receiver PRIVATE -DRAW_UDP=1)
|
||||||
endif()
|
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)
|
target_compile_definitions(core_receiver PRIVATE -DGR_GREATER_38=1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -213,7 +213,7 @@ endif()
|
||||||
# Definitions
|
# Definitions
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
if(NOT (GNURADIO_VERSION VERSION_LESS "3.8"))
|
if(GNURADIO_IS_38_OR_GREATER)
|
||||||
add_definitions(-DGR_GREATER_38=1)
|
add_definitions(-DGR_GREATER_38=1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue