summaryrefslogtreecommitdiffstats
path: root/Tests/Complex
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2023-07-24 21:26:18 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2023-07-24 21:26:18 (GMT)
commit13e674b61b895266afb49c444621516411852b77 (patch)
tree58426a3e2b54beb06bab34f522cc4d8228b10506 /Tests/Complex
parente43d97cb29cb6c4c4b949ec167c345069ecc7910 (diff)
downloadCMake-13e674b61b895266afb49c444621516411852b77.zip
CMake-13e674b61b895266afb49c444621516411852b77.tar.gz
CMake-13e674b61b895266afb49c444621516411852b77.tar.bz2
Tests/Complex: Replace exec_program() with execute_process()
Diffstat (limited to 'Tests/Complex')
-rw-r--r--Tests/Complex/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/Complex/CMakeLists.txt b/Tests/Complex/CMakeLists.txt
index 9493a2f..d3a184d 100644
--- a/Tests/Complex/CMakeLists.txt
+++ b/Tests/Complex/CMakeLists.txt
@@ -327,12 +327,12 @@ if (WIN32)
${Complex_SOURCE_DIR}/Library/dummy
"${dir}/${file}"
COPYONLY)
- exec_program(${CMAKE_COMMAND} ARGS "-E write_regv \"${hkey}\" \"${dir}\"")
+ execute_process(COMMAND ${CMAKE_COMMAND} -E write_regv "${hkey}" "${dir}")
find_path(REGISTRY_TEST_PATH
${file}
"[${hkey}]" DOC "Registry_Test_Path")
- exec_program(${CMAKE_COMMAND} ARGS "-E delete_regv \"${hkey}\"")
- exec_program(${CMAKE_COMMAND} ARGS "-E rm -f \"${dir}/${file}\"")
+ execute_process(COMMAND ${CMAKE_COMMAND} -E delete_regv "${hkey}")
+ execute_process(COMMAND ${CMAKE_COMMAND} -E rm -f "${dir}/${file}")
endif ()
endif ()