Properly quote CMake arguments that may contain spaces on Windows

This commit is contained in:
Arjen Hiemstra 2017-08-02 16:43:42 +02:00
parent 7b3290213a
commit 103f880d0a

2
Jenkinsfile vendored
View File

@ -21,7 +21,7 @@ parallel_nodes(['linux && cura', 'windows && cura']) {
// Ensure CMake is setup. Note that since this is Python code we do not really "build" it.
def uranium_dir = get_workspace_dir("Ultimaker/Uranium/${branch}")
cmake("..", "-DCMAKE_PREFIX_PATH=${env.CURA_ENVIRONMENT_PATH}/${branch} -DCMAKE_BUILD_TYPE=Release -DURANIUM_DIR=${uranium_dir}")
cmake("..", "-DCMAKE_PREFIX_PATH=\"${env.CURA_ENVIRONMENT_PATH}/${branch}\" -DCMAKE_BUILD_TYPE=Release -DURANIUM_DIR=\"${uranium_dir}\"")
}
// Try and run the unit tests. If this stage fails, we consider the build to be "unstable".