Commit 77ad52b1 authored by A. Maitland Bottoms's avatar A. Maitland Bottoms Committed by michael-west

cmake: Improve logic for UHD_IMAGES_DIR

A CMake option is either On or Off.  UHD_IMAGES_DIR gets a sane
default if not specified on the CMake command line.
parent e123caf8
......@@ -167,9 +167,7 @@ if(NOT DEFINED UHD_IMAGES_DIR)
endif(DEFINED FPGA_IMAGES_DIR)
endif(NOT DEFINED UHD_IMAGES_DIR)
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 UHD_IMAGES_DIR_WINREG_KEY)
add_definitions(-DUHD_IMAGES_DIR_WINREG_KEY=${UHD_IMAGES_DIR_WINREG_KEY})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment