diff --git a/qt/qt_build.cmake.in b/qt/qt_build.cmake.in index 3fd215e8..e673da5e 100644 --- a/qt/qt_build.cmake.in +++ b/qt/qt_build.cmake.in @@ -13,9 +13,9 @@ else () endif ("${CMAKE_BUILD_TYPE}" STREQUAL "" OR "${CMAKE_BUILD_TYPE}" STREQUAL "Debug") if (WIN32) - execute_process(COMMAND "@VCVARS_BAT@" && "${CMAKE_COMMAND}" --build . ${QT_CMAKE_OPTS} RESULT_VARIABLE QT_RET WORKING_DIRECTORY @QT_BUILD_DIR@ OUTPUT_VARIABLE MSG ERROR_VARIABLE MSG) + execute_process(COMMAND "@VCVARS_BAT@" && "@CMAKE_COMMAND@" --build . ${QT_CMAKE_OPTS} RESULT_VARIABLE QT_RET WORKING_DIRECTORY "@QT_BUILD_DIR@" OUTPUT_VARIABLE MSG ERROR_VARIABLE MSG) else (WIN32) - execute_process(COMMAND "${CMAKE_COMMAND}" --build . ${QT_CMAKE_OPTS} RESULT_VARIABLE QT_RET WORKING_DIRECTORY @QT_BUILD_DIR@ OUTPUT_VARIABLE MSG ERROR_VARIABLE MSG) + execute_process(COMMAND "@CMAKE_COMMAND@" --build . ${QT_CMAKE_OPTS} RESULT_VARIABLE QT_RET WORKING_DIRECTORY "@QT_BUILD_DIR@" OUTPUT_VARIABLE MSG ERROR_VARIABLE MSG) endif (WIN32) if (QT_RET) diff --git a/qt/qt_install.cmake.in b/qt/qt_install.cmake.in index 8d8d89b0..e68c438f 100644 --- a/qt/qt_install.cmake.in +++ b/qt/qt_install.cmake.in @@ -1,7 +1,7 @@ if (WIN32) - execute_process(COMMAND "@VCVARS_BAT@" && "${CMAKE_COMMAND}" --install . RESULT_VARIABLE QT_RET WORKING_DIRECTORY @QT_BUILD_DIR@ OUTPUT_VARIABLE MSG ERROR_VARIABLE MSG) + execute_process(COMMAND "@VCVARS_BAT@" && "@CMAKE_COMMAND@" --install . RESULT_VARIABLE QT_RET WORKING_DIRECTORY "@QT_BUILD_DIR@" OUTPUT_VARIABLE MSG ERROR_VARIABLE MSG) else (WIN32) - execute_process(COMMAND "${CMAKE_COMMAND}" --install . RESULT_VARIABLE QT_RET WORKING_DIRECTORY @QT_BUILD_DIR@ OUTPUT_VARIABLE MSG ERROR_VARIABLE MSG) + execute_process(COMMAND "@CMAKE_COMMAND@" --install . RESULT_VARIABLE QT_RET WORKING_DIRECTORY "@QT_BUILD_DIR@" OUTPUT_VARIABLE MSG ERROR_VARIABLE MSG) endif (WIN32) if (QT_RET)