From 09b4c8f7a32c044d1eb1701acef6d1b5aba3a080 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sun, 4 Apr 2021 11:24:55 +0200 Subject: [PATCH] Fix bug in searching for gr-iio when CMake is re-run several times (fixes #491) --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ba6a67356..f85d03a81 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2901,6 +2901,10 @@ if(GNURADIO_IIO_FOUND) set(GR_IIO_INCLUDE_HAS_GNURADIO TRUE) set(GNURADIO_API_IIO TRUE) else() + # Force to always search for gr-iio + unset(GRIIO_FOUND CACHE) + unset(IIO_INCLUDE_DIRS CACHE) + unset(IIO_LIBRARIES CACHE) find_package(GRIIO) set_package_properties(GRIIO PROPERTIES PURPOSE "Used for communication with PlutoSDR and FMCOMMS devices."