From: Josh Blum Date: Wed, 5 Oct 2016 21:09:05 +0000 (-0700) Subject: cmake: support empty CMAKE_INSTALL_PREFIX X-Git-Tag: archive/raspbian/1.3-3+rpi1^2~13 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e7c874dec5e05938c782015e782a2514d923f307;p=volk.git cmake: support empty CMAKE_INSTALL_PREFIX Needed quotes for the string escape command Gbp-Pq: Name 0012-cmake-support-empty-CMAKE_INSTALL_PREFIX.patch --- diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index ad5653c..45b6c51 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -489,7 +489,7 @@ endif() message(STATUS "Loading version ${VERSION} into constants...") #double escape for windows backslash path separators -string(REPLACE "\\" "\\\\" prefix ${prefix}) +string(REPLACE "\\" "\\\\" prefix "${prefix}") configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/constants.c.in