gnucash stable: Replace use of deprecated exec_program.
John Ralls
jralls at code.gnucash.org
Mon Dec 9 19:47:51 EST 2024
Updated via https://github.com/Gnucash/gnucash/commit/667d3cbc (commit)
from https://github.com/Gnucash/gnucash/commit/0ae6a202 (commit)
commit 667d3cbcc3386e495e002f395e50faf83454e91d
Author: John Ralls <jralls at ceridwen.us>
Date: Mon Dec 9 16:47:39 2024 -0800
Replace use of deprecated exec_program.
Silencing CMP0153 warnings.
diff --git a/cmake/cmake_uninstall.cmake.in b/cmake/cmake_uninstall.cmake.in
index 0c341762c4..91dfd32965 100644
--- a/cmake/cmake_uninstall.cmake.in
+++ b/cmake/cmake_uninstall.cmake.in
@@ -9,10 +9,10 @@ string(REGEX REPLACE "\n" ";" files "${files}")
foreach(file ${files})
message(STATUS "Uninstalling $ENV{DESTDIR}${file}")
if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
- exec_program(
- "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
+ execute_process(
+ COMMAND ${CMAKE_COMMAND} -E remove \"$ENV{DESTDIR}${file}\"
OUTPUT_VARIABLE rm_out
- RETURN_VALUE rm_retval
+ RESULT_VARIABLE rm_retval
)
if(NOT "${rm_retval}" STREQUAL 0)
message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${file}")
Summary of changes:
cmake/cmake_uninstall.cmake.in | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
More information about the gnucash-changes
mailing list