diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2023-11-29 15:06:36 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2023-11-30 14:59:36 (GMT) |
commit | f6d2efa752d5e823011951c6e642c27334f9377f (patch) | |
tree | 454ed4f4d2a69ffd97282c4c366085038063c2fe /Tests/RunCMake/execute_process/RunCMakeTest.cmake | |
parent | da9df7425ac0703baa1d1e619f281d5f3f148aa8 (diff) | |
download | CMake-f6d2efa752d5e823011951c6e642c27334f9377f.zip CMake-f6d2efa752d5e823011951c6e642c27334f9377f.tar.gz CMake-f6d2efa752d5e823011951c6e642c27334f9377f.tar.bz2 |
Tests: Add case to cover execute_process support for no extension on Windows
Issue: #25450
Diffstat (limited to 'Tests/RunCMake/execute_process/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/execute_process/RunCMakeTest.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/execute_process/RunCMakeTest.cmake b/Tests/RunCMake/execute_process/RunCMakeTest.cmake index 1e9e10a..a3a3a9a 100644 --- a/Tests/RunCMake/execute_process/RunCMakeTest.cmake +++ b/Tests/RunCMake/execute_process/RunCMakeTest.cmake @@ -46,3 +46,10 @@ if(UNIX AND Python_EXECUTABLE) run_cmake_command(LastCommandAbnormalExit-1 ${CMAKE_COMMAND} -DPython_EXECUTABLE=${Python_EXECUTABLE} -P ${RunCMake_SOURCE_DIR}/LastCommandAbnormalExit-1.cmake) run_cmake_command(LastCommandAbnormalExit-2 ${CMAKE_COMMAND} -DPython_EXECUTABLE=${Python_EXECUTABLE} -P ${RunCMake_SOURCE_DIR}/LastCommandAbnormalExit-2.cmake) endif() + +if(WIN32 OR CYGWIN) + set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/WindowsNoExtension-build) + run_cmake(WindowsNoExtension) + set(RunCMake_TEST_NO_CLEAN 1) + run_cmake_command(WindowsNoExtension-build ${CMAKE_COMMAND} --build . --config Debug --target RunScript) +endif() |