浏览代码

cmake_uninstall.cmake.in: Replace exec_program() with execute_process()

Kyle Edwards 2 年之前
父节点
当前提交
edfa4d762d
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      cmake_uninstall.cmake.in

+ 3 - 3
cmake_uninstall.cmake.in

@@ -7,10 +7,10 @@ string(REPLACE "\n" ";" files "${files}")
 foreach(file ${files})
   message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
   if(EXISTS "$ENV{DESTDIR}${file}")
-    exec_program(
-      "@CMAKE_COMMAND@" ARGS "-E rm -f \"$ENV{DESTDIR}${file}\""
+    execute_process(
+      COMMAND "@CMAKE_COMMAND@" -E rm -f "$ENV{DESTDIR}${file}"
       OUTPUT_VARIABLE rm_out
-      RETURN_VALUE rm_retval
+      RESULT_VARIABLE rm_retval
       )
     if("${rm_retval}" STREQUAL 0)
     else()