From 6c8cd94f1419458713543ada013f6b2413afc183 Mon Sep 17 00:00:00 2001 From: Michael Dickens Date: Wed, 24 Sep 2014 13:27:25 -0400 Subject: cmake: set ENV variables to tell GR's FindUHD.cmake that these files were actually used; UHDConfig*.cmake are not always allowed to use CACHE variables, thus the use of ENV. --- host/cmake/Modules/UHDConfig.cmake | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'host/cmake/Modules/UHDConfig.cmake') diff --git a/host/cmake/Modules/UHDConfig.cmake b/host/cmake/Modules/UHDConfig.cmake index f68bc2f1e..cf841cc85 100644 --- a/host/cmake/Modules/UHDConfig.cmake +++ b/host/cmake/Modules/UHDConfig.cmake @@ -28,6 +28,13 @@ # ######################################################################## +# set that this file was found, for use in GNU Radio's FindUHD.cmake. +# Have to use the ENV, since this file might not allow CACHE changes. + +set(ENV{UHD_CONFIG_USED} TRUE) + +# set default values + SET(UHD_FOUND TRUE) SET(UHD_INCLUDE_HINTS) SET(UHD_LIBDIR_HINTS) -- cgit v1.2.3