diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-11-03 14:06:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-11-03 14:55:35 (GMT) |
commit | 1c912056a1ae393183b06c4f9fdfc896d5bb469d (patch) | |
tree | bce6d94f91faf339d725957eb5ed17b3a18418df /Tests/RunCMake/separate_arguments/ProgramCommand.cmake | |
parent | 855bdc586c2c8c6ed029c6d0e370e19e0b2e6193 (diff) | |
download | CMake-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/ProgramCommand.cmake')
-rw-r--r-- | Tests/RunCMake/separate_arguments/ProgramCommand.cmake | 2 |
1 files changed, 1 insertions, 1 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}") |