diff --git a/Modules/Platform/Windows-cl.cmake b/Modules/Platform/Windows-cl.cmake index 9e31f595e..7a892e4f5 100644 --- a/Modules/Platform/Windows-cl.cmake +++ b/Modules/Platform/Windows-cl.cmake @@ -76,7 +76,7 @@ ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 7") SET(CMAKE_COMPILER_SUPPORTS_PDBTYPE 1) IF(CMAKE_GENERATOR MATCHES "NMake Makefiles") EXEC_PROGRAM(${CMAKE_CXX_COMPILER} - ARGS /nologo -EP ${CMAKE_ROOT}/Modules/CMakeTestNMakeCLVersion.c + ARGS /nologo -EP "${CMAKE_ROOT}/Modules/CMakeTestNMakeCLVersion.c" OUTPUT_VARIABLE CMAKE_COMPILER_OUTPUT RETURN_VALUE CMAKE_COMPILER_RETURN )