File sdrpp-libcorrect.patch of Package sdrpp

--- a/core/CMakeLists.txt
+++ b/core/CMakeLists.txt
@@ -150,10 +150,14 @@ else()
     )
 
     if (NOT USE_INTERNAL_LIBCORRECT)
-        pkg_check_modules(CORRECT REQUIRED libcorrect)
+        pkg_check_modules(CORRECT libcorrect)
+        if (CORRECT_FOUND)
         target_include_directories(sdrpp_core PUBLIC ${CORRECT_INCLUDE_DIRS})
         target_link_directories(sdrpp_core PUBLIC ${CORRECT_LIBRARY_DIRS})
         target_link_libraries(sdrpp_core PUBLIC ${CORRECT_LIBRARIES})
+        else (CORRECT_FOUND)
+            target_link_libraries(sdrpp_core PUBLIC correct)
+        endif (CORRECT_FOUND)
     endif (NOT USE_INTERNAL_LIBCORRECT)
 
     if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
openSUSE Build Service is sponsored by