diff options
author | Brooks Prumo <brooks@prumo.org> | 2016-01-15 17:19:47 -0600 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-01-21 20:39:35 +0100 |
commit | 23ed1af481aa4a2901887a3127d42cf398fd40f5 (patch) | |
tree | 0118c6b5757de92137f541c54d7ae72b4b1bdf22 /host/lib | |
parent | db3db1e2f031b543dccfb946afa311553e86f79c (diff) | |
download | uhd-23ed1af481aa4a2901887a3127d42cf398fd40f5.tar.gz uhd-23ed1af481aa4a2901887a3127d42cf398fd40f5.tar.bz2 uhd-23ed1af481aa4a2901887a3127d42cf398fd40f5.zip |
uhd: add CMake flag for the Windows registry key to specify UHD images directory
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/utils/paths.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/host/lib/utils/paths.cpp b/host/lib/utils/paths.cpp index eb9e69a49..ebc18fe93 100644 --- a/host/lib/utils/paths.cpp +++ b/host/lib/utils/paths.cpp @@ -41,10 +41,6 @@ #include <windows.h> //GetTempPath #endif -#ifdef USE_NIUSRP_WINREG_KEY -#define NIUSRP_WINREG_KEY "[HKLM\\Software\\National Instruments\\NI-USRP\\DriverBitfilesDir]" -#endif - namespace fs = boost::filesystem; /*! Get the value of an environment variable. @@ -287,8 +283,8 @@ std::string uhd::get_images_dir(const std::string &search_paths) { * (see below). Making a local copy for const correctness. */ std::string _search_paths = search_paths; -#ifdef USE_NIUSRP_WINREG_KEY - _search_paths = std::string(NIUSRP_WINREG_KEY) + "," + search_paths; +#ifdef UHD_IMAGES_DIR_WINREG_KEY + _search_paths = std::string("UHD_IMAGES_DIR_WINREG_KEY") + "," + search_paths; #endif /* Now we will parse and attempt to qualify the paths in the `search_paths` |