diff options
author | Lane Kolbly <lane.kolbly@ni.com> | 2020-04-06 11:48:08 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-04-07 12:13:05 -0500 |
commit | 76aaf0f55788a4d2c7adeea65a9205340421ca49 (patch) | |
tree | f1af83cbea8b03b4f9e35bbd7fa6e7a97dc92001 /host/cmake/Modules | |
parent | 002a787258f91095ea34d5ff362767fa0c6dc480 (diff) | |
download | uhd-76aaf0f55788a4d2c7adeea65a9205340421ca49.tar.gz uhd-76aaf0f55788a4d2c7adeea65a9205340421ca49.tar.bz2 uhd-76aaf0f55788a4d2c7adeea65a9205340421ca49.zip |
uhd: Add quotes around test environment variables
On systems which have spaces in the environment variables, such as
$PATH, attempting to run the generated test scripts will throw an error
about a bad variable name. Adding quotes around the values prevents
this error.
Diffstat (limited to 'host/cmake/Modules')
-rw-r--r-- | host/cmake/Modules/UHDUnitTest.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/cmake/Modules/UHDUnitTest.cmake b/host/cmake/Modules/UHDUnitTest.cmake index 3ebf3f08c..9a71ca2aa 100644 --- a/host/cmake/Modules/UHDUnitTest.cmake +++ b/host/cmake/Modules/UHDUnitTest.cmake @@ -53,7 +53,7 @@ function(UHD_ADD_TEST test_name) #replace list separator with the path separator string(REPLACE ";" ":" libpath "${libpath}") - list(APPEND environs "PATH=${binpath}" "${LD_PATH_VAR}=${libpath}" "UHD_RFNOC_DIR=${CMAKE_SOURCE_DIR}/include/uhd/rfnoc") + list(APPEND environs "PATH=\"${binpath}\"" "${LD_PATH_VAR}=\"${libpath}\"" "UHD_RFNOC_DIR=\"${CMAKE_SOURCE_DIR}/include/uhd/rfnoc\"") #generate a bat file that sets the environment and runs the test if (CMAKE_CROSSCOMPILING) |