BUG: Fix for space in path for chdir test. We just need to double-quote the arguments.

This commit is contained in:
Brad King 2005-02-17 07:53:03 -05:00
parent 9e65aca620
commit e64f3c8b67
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ MACRO(EXEC_CMAKE_COMMAND CMAKE_ARGS)
ENDIF(${RET}) ENDIF(${RET})
ENDMACRO(EXEC_CMAKE_COMMAND) ENDMACRO(EXEC_CMAKE_COMMAND)
EXEC_CMAKE_COMMAND("-E chdir ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_COMMAND} -E echo \"Hello World\"") EXEC_CMAKE_COMMAND("-E chdir \"${CMAKE_CURRENT_SOURCE_DIR}\" \"${CMAKE_COMMAND}\" -E echo \"Hello World\"")
EXEC_CMAKE_COMMAND("-E time \"${CMAKE_COMMAND} -N -L ${CommandLineTest_SOURCE_DIR}\"") EXEC_CMAKE_COMMAND("-E time \"${CMAKE_COMMAND} -N -L ${CommandLineTest_SOURCE_DIR}\"")
EXEC_CMAKE_COMMAND("-E time \"${CMAKE_COMMAND} -N -LA ${CommandLineTest_SOURCE_DIR}\"") EXEC_CMAKE_COMMAND("-E time \"${CMAKE_COMMAND} -N -LA ${CommandLineTest_SOURCE_DIR}\"")
EXEC_CMAKE_COMMAND("-E time \"${CMAKE_COMMAND} -N -LH ${CommandLineTest_SOURCE_DIR}\"") EXEC_CMAKE_COMMAND("-E time \"${CMAKE_COMMAND} -N -LH ${CommandLineTest_SOURCE_DIR}\"")