diff --git a/cmake/install-clang-batch-file.cmake b/cmake/install-clang-batch-file.cmake index 95f706bc1..71d9b601c 100644 --- a/cmake/install-clang-batch-file.cmake +++ b/cmake/install-clang-batch-file.cmake @@ -4,5 +4,5 @@ function(install_clang_batch_file bindir platform suffix) set(file mos-${platform}-${suffix}.bat) message(STATUS "Creating redirecting batch file ${file}") - file(WRITE ${bindir}/${file} "@ECHO OFF\n%~dp0\\mos-${suffix} --config mos-${platform}.cfg %*\n") + file(WRITE ${bindir}/${file} "@ECHO OFF\n\"%~dp0\\mos-${suffix}\" --config mos-${platform}.cfg %*\n") endfunction()