mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-31 11:19:18 +00:00
Fix for old CMake
This commit is contained in:
parent
8247021f32
commit
e15faa7b67
@ -416,7 +416,11 @@ if(GNURADIO_RUNTIME_INCLUDE_DIRS)
|
|||||||
PURPOSE "Required by GNU Radio."
|
PURPOSE "Required by GNU Radio."
|
||||||
TYPE REQUIRED
|
TYPE REQUIRED
|
||||||
)
|
)
|
||||||
|
if(CMAKE_VERSION VERSION_GREATER 3.0)
|
||||||
target_link_libraries(Gnuradio::filter INTERFACE Log4cpp::log4cpp)
|
target_link_libraries(Gnuradio::filter INTERFACE Log4cpp::log4cpp)
|
||||||
|
else()
|
||||||
|
set(LOG4CPP_WITH_OLD_CMAKE TRUE)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
if(${_uses_spdlog})
|
if(${_uses_spdlog})
|
||||||
find_package(spdlog REQUIRED CONFIG)
|
find_package(spdlog REQUIRED CONFIG)
|
||||||
|
@ -53,6 +53,13 @@ target_include_directories(input_filter_gr_blocks
|
|||||||
${GNSSSDR_SOURCE_DIR}/src/core/interfaces
|
${GNSSSDR_SOURCE_DIR}/src/core/interfaces
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(LOG4CPP_WITH_OLD_CMAKE)
|
||||||
|
target_link_libraries(input_filter_gr_blocks
|
||||||
|
PRIVATE
|
||||||
|
Log4cpp::log4cpp
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(GNURADIO_USES_STD_POINTERS)
|
if(GNURADIO_USES_STD_POINTERS)
|
||||||
target_compile_definitions(input_filter_gr_blocks
|
target_compile_definitions(input_filter_gr_blocks
|
||||||
PUBLIC -DGNURADIO_USES_STD_POINTERS=1
|
PUBLIC -DGNURADIO_USES_STD_POINTERS=1
|
||||||
|
Loading…
Reference in New Issue
Block a user