mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-09-07 05:18:00 +00:00
Fix for old CMake
This commit is contained in:
@@ -419,7 +419,7 @@ if(GNURADIO_RUNTIME_INCLUDE_DIRS)
|
|||||||
if(CMAKE_VERSION VERSION_GREATER 3.13)
|
if(CMAKE_VERSION VERSION_GREATER 3.13)
|
||||||
target_link_libraries(Gnuradio::filter INTERFACE Log4cpp::log4cpp)
|
target_link_libraries(Gnuradio::filter INTERFACE Log4cpp::log4cpp)
|
||||||
else()
|
else()
|
||||||
set(LOG4CPP_WITH_OLD_CMAKE TRUE)
|
set_target_properties(Gnuradio::filter PROPERTIES INTERFACE_LINK_LIBRARIES Log4cpp::log4cpp)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
if(${_uses_spdlog})
|
if(${_uses_spdlog})
|
||||||
@@ -431,8 +431,13 @@ if(GNURADIO_RUNTIME_INCLUDE_DIRS)
|
|||||||
TYPE REQUIRED
|
TYPE REQUIRED
|
||||||
)
|
)
|
||||||
set(GNURADIO_USES_SPDLOG TRUE)
|
set(GNURADIO_USES_SPDLOG TRUE)
|
||||||
|
if(CMAKE_VERSION VERSION_GREATER 3.13)
|
||||||
target_link_libraries(Gnuradio::runtime INTERFACE spdlog::spdlog)
|
target_link_libraries(Gnuradio::runtime INTERFACE spdlog::spdlog)
|
||||||
target_link_libraries(Gnuradio::blocks 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()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Reference in New Issue
Block a user