cmake: support empty CMAKE_INSTALL_PREFIX
authorJosh Blum <josh@joshknows.com>
Wed, 5 Oct 2016 21:09:05 +0000 (14:09 -0700)
committerA. Maitland Bottoms <bottoms@debian.org>
Sun, 4 Feb 2018 18:12:21 +0000 (18:12 +0000)
Needed quotes for the string escape command

Gbp-Pq: Name 0012-cmake-support-empty-CMAKE_INSTALL_PREFIX.patch

lib/CMakeLists.txt

index ad5653ceb028996a3447d3f61d70323a8cc28699..45b6c5192cf0d736bb66cbc0e9c1ed84f6d79b62 100644 (file)
@@ -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