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
72b7311c6c
commit
4f2d73dfe3
@ -419,7 +419,7 @@ if(GNURADIO_RUNTIME_INCLUDE_DIRS)
|
||||
if(CMAKE_VERSION VERSION_GREATER 3.13)
|
||||
target_link_libraries(Gnuradio::filter INTERFACE Log4cpp::log4cpp)
|
||||
else()
|
||||
set(LOG4CPP_WITH_OLD_CMAKE TRUE)
|
||||
set_target_properties(Gnuradio::filter PROPERTIES INTERFACE_LINK_LIBRARIES Log4cpp::log4cpp)
|
||||
endif()
|
||||
endif()
|
||||
if(${_uses_spdlog})
|
||||
@ -431,8 +431,13 @@ if(GNURADIO_RUNTIME_INCLUDE_DIRS)
|
||||
TYPE REQUIRED
|
||||
)
|
||||
set(GNURADIO_USES_SPDLOG TRUE)
|
||||
target_link_libraries(Gnuradio::runtime INTERFACE spdlog::spdlog)
|
||||
target_link_libraries(Gnuradio::blocks INTERFACE spdlog::spdlog)
|
||||
if(CMAKE_VERSION VERSION_GREATER 3.13)
|
||||
target_link_libraries(Gnuradio::runtime INTERFACE spdlog::spdlog)
|
||||
target_link_libraries(Gnuradio::blocks INTERFACE spdlog::spdlog)
|
||||
else()
|
||||
set_target_properties(Gnuradio::runtime PROPERTIES INTERFACE_LINK_LIBRARIES spdlog::spdlog)
|
||||
set_target_properties(Gnuradio::blocks PROPERTIES INTERFACE_LINK_LIBRARIES spdlog::spdlog)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user