summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2023-07-24 21:28:04 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2023-07-24 21:28:04 (GMT)
commit54a68b221a3ac4b56ba014f224f4f37fa3dda85c (patch)
tree944908983d78aa54c87529b128b62fb57057a12e
parent13e674b61b895266afb49c444621516411852b77 (diff)
downloadCMake-54a68b221a3ac4b56ba014f224f4f37fa3dda85c.zip
CMake-54a68b221a3ac4b56ba014f224f4f37fa3dda85c.tar.gz
CMake-54a68b221a3ac4b56ba014f224f4f37fa3dda85c.tar.bz2
Tests/ComplexOneConfig: Replace exec_program() with execute_process()
-rw-r--r--Tests/ComplexOneConfig/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/ComplexOneConfig/CMakeLists.txt b/Tests/ComplexOneConfig/CMakeLists.txt
index e4fdc68..dd996e1 100644
--- a/Tests/ComplexOneConfig/CMakeLists.txt
+++ b/Tests/ComplexOneConfig/CMakeLists.txt
@@ -284,12 +284,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 ()