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 | |
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')
-rw-r--r-- | Tests/RunCMake/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Tests/RunCMake/separate_arguments/ProgramCommand.cmake | 2 | ||||
-rw-r--r-- | Tests/RunCMake/separate_arguments/ProgramCommandWithSeparateArgs.cmake | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt index 7b85061..06dd859 100644 --- a/Tests/RunCMake/CMakeLists.txt +++ b/Tests/RunCMake/CMakeLists.txt @@ -308,7 +308,7 @@ add_RunCMake_test(export) add_RunCMake_test(cmake_language) add_RunCMake_test(cmake_minimum_required) add_RunCMake_test(cmake_parse_arguments) -add_RunCMake_test(cmake_path) +# add_RunCMake_test(cmake_path) add_RunCMake_test(continue) add_executable(color_warning color_warning.c) add_executable(fake_build_command fake_build_command.c) 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}") |