summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/separate_arguments
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-11-03 14:06:48 (GMT)
committerBrad King <brad.king@kitware.com>2020-11-03 14:55:35 (GMT)
commit1c912056a1ae393183b06c4f9fdfc896d5bb469d (patch)
treebce6d94f91faf339d725957eb5ed17b3a18418df /Tests/RunCMake/separate_arguments
parent855bdc586c2c8c6ed029c6d0e370e19e0b2e6193 (diff)
downloadCMake-1c912056a1ae393183b06c4f9fdfc896d5bb469d.zip
CMake-1c912056a1ae393183b06c4f9fdfc896d5bb469d.tar.gz
CMake-1c912056a1ae393183b06c4f9fdfc896d5bb469d.tar.bz2
cmake_path: remove new command from 3.19
Defer adding this command until post-3.19 development so that it has more time to mature before being included in a release. Issue: #21385
Diffstat (limited to 'Tests/RunCMake/separate_arguments')
-rw-r--r--Tests/RunCMake/separate_arguments/ProgramCommand.cmake2
-rw-r--r--Tests/RunCMake/separate_arguments/ProgramCommandWithSeparateArgs.cmake2
2 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/separate_arguments/ProgramCommand.cmake b/Tests/RunCMake/separate_arguments/ProgramCommand.cmake
index bdf5810..8325def 100644
--- a/Tests/RunCMake/separate_arguments/ProgramCommand.cmake
+++ b/Tests/RunCMake/separate_arguments/ProgramCommand.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}")
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}")