1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-09-03 19:38:00 +00:00

Fix for old CMake

This commit is contained in:
Carles Fernandez
2022-09-28 08:08:09 +02:00
parent 72b7311c6c
commit 4f2d73dfe3

View File

@@ -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()