File 0001-Fix-usage-of-find_package_handle_standard_args-in-Fi.patch of Package libsdr
From 47660216156f1a84be3735ff48fcf9973cac4867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de> Date: Sat, 2 Nov 2019 01:02:07 +0100 Subject: [PATCH] Fix usage of find_package_handle_standard_args in FindPortAudio With recent alsa version, the INCLUDE_DIRS variable may be empty (/usr/include/ only is omitted), and FPHSA evaluates all passed variables to determine if the package has been found. --- cmake/FindPortAudio.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindPortAudio.cmake b/cmake/FindPortAudio.cmake index 8381504..70c2f71 100644 --- a/cmake/FindPortAudio.cmake +++ b/cmake/FindPortAudio.cmake @@ -103,7 +103,7 @@ else(PORTAUDIO_LIBRARIES AND PORTAUDIO_INCLUDE_DIRS) endif (PORTAUDIO2_FOUND) include(FindPackageHandleStandardArgs) - find_package_handle_standard_args(PORTAUDIO DEFAULT_MSG PORTAUDIO_INCLUDE_DIRS PORTAUDIO_LIBRARIES) + find_package_handle_standard_args(PORTAUDIO DEFAULT_MSG PORTAUDIO_LIBRARIES PORTAUDIO_FOUND) # show the PORTAUDIO_INCLUDE_DIRS and PORTAUDIO_LIBRARIES variables only in the advanced view mark_as_advanced(PORTAUDIO_INCLUDE_DIRS PORTAUDIO_LIBRARIES) -- 2.23.0