diff options
| -rw-r--r-- | host/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | host/lib/usrp/common/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | host/lib/utils/paths.cpp | 8 | 
3 files changed, 6 insertions, 12 deletions
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index d38b4902c..f7a35fc8b 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -75,9 +75,9 @@ OPTION(UHD_IMAGES_DIR "Path to installed UHD image binaries.")  MESSAGE( STATUS "Using UHD Images Directory: ${UHD_IMAGES_DIR}" )  ADD_DEFINITIONS(-DUHD_IMAGES_DIR=${UHD_IMAGES_DIR}) -IF(DEFINED USE_NIUSRP_WINREG_KEY) -    ADD_DEFINITIONS(-DUSE_NIUSRP_WINREG_KEY) -ENDIF(DEFINED USE_NIUSRP_WINREG_KEY) +IF(DEFINED UHD_IMAGES_DIR_WINREG_KEY) +    ADD_DEFINITIONS(-DUHD_IMAGES_DIR_WINREG_KEY=${UHD_IMAGES_DIR_WINREG_KEY}) +ENDIF(DEFINED UHD_IMAGES_DIR_WINREG_KEY)  ########################################################################  # Local Include Dir diff --git a/host/lib/usrp/common/CMakeLists.txt b/host/lib/usrp/common/CMakeLists.txt index 27de9c061..270314dcc 100644 --- a/host/lib/usrp/common/CMakeLists.txt +++ b/host/lib/usrp/common/CMakeLists.txt @@ -1,5 +1,5 @@  # -# Copyright 2011-2013 Ettus Research LLC +# Copyright 2011-2013,2016 Ettus Research LLC  #  # This program is free software: you can redistribute it and/or modify  # it under the terms of the GNU General Public License as published by @@ -19,8 +19,6 @@  # This file included, use CMake directory variables  ########################################################################  IF(ENABLE_USB) -    INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/../firmware/fx2/common) -      LIBUHD_APPEND_SOURCES(          ${CMAKE_CURRENT_SOURCE_DIR}/fx2_ctrl.cpp      ) diff --git a/host/lib/utils/paths.cpp b/host/lib/utils/paths.cpp index 5aa505baf..8f586ddf4 100644 --- a/host/lib/utils/paths.cpp +++ b/host/lib/utils/paths.cpp @@ -40,10 +40,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. @@ -286,8 +282,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`  | 
