aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/utils/CMakeLists.txt
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-01-04 07:00:36 -0800
committerMartin Braun <martin.braun@ettus.com>2017-01-04 07:00:36 -0800
commit8bd2a5fae547fa1c23da2a78f4f5e61552c431d0 (patch)
treef89777429ee4afdcea6cd3b3f2af85969fdc0445 /host/lib/utils/CMakeLists.txt
parentd00d4ae8ff7744d0a5f514cf8cc875348bd408ac (diff)
downloaduhd-8bd2a5fae547fa1c23da2a78f4f5e61552c431d0.tar.gz
uhd-8bd2a5fae547fa1c23da2a78f4f5e61552c431d0.tar.bz2
uhd-8bd2a5fae547fa1c23da2a78f4f5e61552c431d0.zip
cmake: Add some quotes on case certain variables are blank
Diffstat (limited to 'host/lib/utils/CMakeLists.txt')
-rw-r--r--host/lib/utils/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/utils/CMakeLists.txt b/host/lib/utils/CMakeLists.txt
index 790ef72ad..128d7c00a 100644
--- a/host/lib/utils/CMakeLists.txt
+++ b/host/lib/utils/CMakeLists.txt
@@ -116,8 +116,8 @@ SET_SOURCE_FILES_PROPERTIES(
########################################################################
# Define UHD_PKG_DATA_PATH for paths.cpp
########################################################################
-FILE(TO_NATIVE_PATH ${CMAKE_INSTALL_PREFIX} UHD_PKG_PATH)
-STRING(REPLACE "\\" "\\\\" UHD_PKG_PATH ${UHD_PKG_PATH})
+FILE(TO_NATIVE_PATH "${CMAKE_INSTALL_PREFIX}" UHD_PKG_PATH)
+STRING(REPLACE "\\" "\\\\" UHD_PKG_PATH "${UHD_PKG_PATH}")
STRING(REGEX MATCH ".*/.*" SLASH "${LIB_SUFFIX}")
IF(SLASH STREQUAL "")