From 65deb30c24b6decb24eb91ad148de17f2de75315 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Tue, 17 Oct 2017 17:12:29 +0200 Subject: [PATCH] Cmake doc creation: Python is choking on '\\' --- development/cmake/doc/ReplaceValues.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/development/cmake/doc/ReplaceValues.cmake b/development/cmake/doc/ReplaceValues.cmake index 5a8f754de7..77026cb460 100644 --- a/development/cmake/doc/ReplaceValues.cmake +++ b/development/cmake/doc/ReplaceValues.cmake @@ -9,10 +9,12 @@ foreach(_v LYX_USERDIR_VER LYX_DIR_VER REL_DIR SOURCE CREATED LYX_PYTHON_EXECUTA endif() endforeach() +set(originstring "origin\ unavailable=origin\ /systemlyxdir/doc/${REL_DIR}") +#message(STATUS "originstring=${originstring}") execute_process(COMMAND ${LYX_PYTHON_EXECUTABLE} "${TOP_CMAKE_PATH}/doc/ReplaceValues.py" "LYX_USERDIR_VER=${LYX_USERDIR_VER}" "LYX_DIR_VER=${LYX_DIR_VER}" - "\\origin\ unavailable=\\origin\ /systemlyxdir/doc/${REL_DIR}" + ${originstring} "${TOP_SRC_DIR}/lib/doc/${SOURCE}" OUTPUT_FILE "${CREATED}" RESULT_VARIABLE _err