summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/separate_arguments/ProgramCommandWithSeparateArgs.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/separate_arguments/ProgramCommandWithSeparateArgs.cmake')
-rw-r--r--Tests/RunCMake/separate_arguments/ProgramCommandWithSeparateArgs.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/separate_arguments/ProgramCommandWithSeparateArgs.cmake b/Tests/RunCMake/separate_arguments/ProgramCommandWithSeparateArgs.cmake
index 2826cc9..07572ba 100644
--- a/Tests/RunCMake/separate_arguments/ProgramCommandWithSeparateArgs.cmake
+++ b/Tests/RunCMake/separate_arguments/ProgramCommandWithSeparateArgs.cmake
@@ -7,7 +7,7 @@ endif()
set (TEST_EXE_DIR "${CMAKE_CURRENT_BINARY_DIR}/TestExe")
file(MAKE_DIRECTORY "${TEST_EXE_DIR}")
file(COPY "${CMAKE_COMMAND}" DESTINATION "${TEST_EXE_DIR}")
-cmake_path (GET CMAKE_COMMAND FILENAME cmake_exe)
+get_filename_component (cmake_exe "${CMAKE_COMMAND}" NAME)
set (ENV{PATH} "${TEST_EXE_DIR}")