aboutsummaryrefslogtreecommitdiffstats
path: root/host/cmake/Modules/UHDConfig.cmake
diff options
context:
space:
mode:
authorMichael Dickens <michael.dickens@ettus.com>2014-09-24 13:27:25 -0400
committerMartin Braun <martin.braun@ettus.com>2014-09-25 13:06:18 -0700
commit6c8cd94f1419458713543ada013f6b2413afc183 (patch)
tree3090ce08f553d6ef8eb54eb43ab24517b4d91c14 /host/cmake/Modules/UHDConfig.cmake
parent2957ca5bbae8c8d15377c478b139627bc88a6962 (diff)
downloaduhd-6c8cd94f1419458713543ada013f6b2413afc183.tar.gz
uhd-6c8cd94f1419458713543ada013f6b2413afc183.tar.bz2
uhd-6c8cd94f1419458713543ada013f6b2413afc183.zip
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.
Diffstat (limited to 'host/cmake/Modules/UHDConfig.cmake')
-rw-r--r--host/cmake/Modules/UHDConfig.cmake7
1 files changed, 7 insertions, 0 deletions
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)