Implement SigMF support only when compiled with GCC (libsigmf dependency). Implements #712

pull/717/head
f4exb 2020-11-21 12:16:49 +01:00
rodzic f81f705883
commit b396a190de
4 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -323,9 +323,9 @@ find_package(LibUSB REQUIRED) # used by so many packages
find_package(OpenCV OPTIONAL_COMPONENTS core highgui imgproc imgcodecs videoio) # channeltx/modatv
find_package(LibSigMF) # SigMF recording files support
if (LIBSIGMF_FOUND)
if (LIBSIGMF_FOUND AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_definitions(-DHAS_LIBSIGMF)
endif (LIBSIGMF_FOUND)
endif()
# macOS compatibility
if(APPLE)

Wyświetl plik

@ -26,9 +26,9 @@ if (CODEC2_FOUND)
add_subdirectory(demodfreedv)
endif(CODEC2_FOUND)
if (LIBSIGMF_FOUND)
if (LIBSIGMF_FOUND AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_subdirectory(sigmffilesink)
endif(LIBSIGMF_FOUND)
endif()
if(NOT SERVER_MODE)
add_subdirectory(chanalyzer)

Wyświetl plik

@ -58,7 +58,7 @@ if(ENABLE_SOAPYSDR AND SOAPYSDR_FOUND)
add_subdirectory(soapysdrinput)
endif()
if(LIBSIGMF_FOUND)
if(LIBSIGMF_FOUND AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_subdirectory(sigmffileinput)
endif()

Wyświetl plik

@ -44,7 +44,7 @@ if (LIMESUITE_FOUND)
set(sdrbase_LIMERFE_LIB ${LIMESUITE_LIBRARY})
endif (LIMESUITE_FOUND)
if (LIBSIGMF_FOUND)
if (LIBSIGMF_FOUND AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set(sdrbase_SOURCES
${sdrbase_SOURCES}
dsp/sigmffilerecord.cpp
@ -56,7 +56,7 @@ if (LIBSIGMF_FOUND)
)
include_directories(${LIBSIGMF_INCLUDE_DIR})
set(sdrbase_LIBSIGMF_LIB ${LIBSIGMF_LIBRARIES})
endif (LIBSIGMF_FOUND)
endif()
# serialdv now required
add_definitions(-DDSD_USE_SERIALDV)