summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-08-18 12:24:15 -0700
committerJosh Blum <josh@joshknows.com>2010-08-18 12:24:15 -0700
commit5f27d6edb43f74abd5c8a7bb10b0931b61c6218d (patch)
tree3bec97d5c6a795decb4658c859b56a4a3c721565 /host
parent77b35f6998accee1f826343742dc9e2c4bcdb82b (diff)
downloaduhd-5f27d6edb43f74abd5c8a7bb10b0931b61c6218d.tar.gz
uhd-5f27d6edb43f74abd5c8a7bb10b0931b61c6218d.tar.bz2
uhd-5f27d6edb43f74abd5c8a7bb10b0931b61c6218d.zip
uhd: windows path escape fix
Diffstat (limited to 'host')
-rw-r--r--host/lib/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/CMakeLists.txt b/host/lib/CMakeLists.txt
index cbb68c725..81845de21 100644
--- a/host/lib/CMakeLists.txt
+++ b/host/lib/CMakeLists.txt
@@ -54,11 +54,13 @@ INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/utils/CMakeLists.txt)
# Append to the list of sources for lib uhd
########################################################################
FILE(TO_NATIVE_PATH ${CMAKE_INSTALL_PREFIX}/${PKG_DATA_DIR} LOCAL_PKG_DATA_DIR)
+STRING(REPLACE "\\" "\\\\" LOCAL_PKG_DATA_DIR ${LOCAL_PKG_DATA_DIR})
MESSAGE(STATUS "Local package data directory: ${LOCAL_PKG_DATA_DIR}")
IF(UNIX)
#on unix systems, installers will use this directory for the package data
FILE(TO_NATIVE_PATH /usr/${PKG_DATA_DIR} INSTALLER_PKG_DATA_DIR)
+ STRING(REPLACE "\\" "\\\\" INSTALLER_PKG_DATA_DIR ${INSTALLER_PKG_DATA_DIR})
MESSAGE(STATUS "Installer package data directory: ${INSTALLER_PKG_DATA_DIR}")
ENDIF(UNIX)