Code Generator: Fix installation
Before this change installation of `kdb-gen` would fail, if the build
path contained whitespace characters.
@@ -14,20 +14,20 @@ if (PYTHON2INTERP_FOUND)
install(CODE "execute_process(COMMAND
${PYTHON2_EXECUTABLE}
- ${CMAKE_CURRENT_SOURCE_DIR}/gen
+ \"${CMAKE_CURRENT_SOURCE_DIR}/gen\"
-p tests/lift.ini
- ${CMAKE_CURRENT_SOURCE_DIR}/util/util.c
- -o ${CMAKE_CURRENT_BINARY_DIR}/util.py)")
+ \"${CMAKE_CURRENT_SOURCE_DIR}/util/util.c\"
+ -o \"${CMAKE_CURRENT_BINARY_DIR}/util.py\")")
install(CODE "execute_process(COMMAND
${PYTHON2_EXECUTABLE}
- ${CMAKE_CURRENT_SOURCE_DIR}/gen
+ \"${CMAKE_CURRENT_SOURCE_DIR}/gen\"
-p tests/lift.ini
- ${CMAKE_CURRENT_SOURCE_DIR}/util/util.cpp
- -o ${CMAKE_CURRENT_BINARY_DIR}/cpp_util.py)")
+ \"${CMAKE_CURRENT_SOURCE_DIR}/util/util.cpp\"
+ -o \"${CMAKE_CURRENT_BINARY_DIR}/cpp_util.py\")")
install(CODE "execute_process(COMMAND
- ${PYTHON2_EXECUTABLE} ${SETUP_PY}
+ ${PYTHON2_EXECUTABLE} \"${SETUP_PY}\"
--no-user-cfg
--quiet
install
