Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a89c229

Browse filesBrowse files
committed
uninstall: use execute_process() instead of exec_program()
exec_program() is deprecated since 3.28, see: 'cmake --help-policy CMP0153', and cmake support execute_process() since CMake 2.6.0. $ sudo make uninstall .... -- Uninstalling /usr/share/bcc/examples/networking/distributed_bridge/tunnel.py CMake Warning (dev) at /home/rongtao/Git/bcc/build/CmakeUninstall.cmake:14 (exec_program): Policy CMP0153 is not set: The exec_program command should not be called. Run "cmake --help-policy CMP0153" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Use execute_process() instead. Call Stack (most recent call first): /home/rongtao/Git/bcc/build/CmakeUninstall.cmake:28 (UninstallManifest) This warning is for project developers. Use -Wno-dev to suppress it. Link: https://cmake.org/cmake/help/v3.12/command/execute_process.html Signed-off-by: Rong Tao <rongtao@cestc.cn>
1 parent 1f63ae6 commit a89c229
Copy full SHA for a89c229

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎cmake/CmakeUninstall.cmake.in

Copy file name to clipboardExpand all lines: cmake/CmakeUninstall.cmake.in
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ string(REGEX REPLACE "\n" ";" files "${files}")
1111
foreach(file ${files})
1212
message(STATUS "Uninstalling $ENV{DESTDIR}${file}")
1313
if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
14-
exec_program(
15-
"@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
14+
execute_process(
15+
COMMAND @CMAKE_COMMAND@ -E remove "$ENV{DESTDIR}${file}"
1616
OUTPUT_VARIABLE rm_out
17-
RETURN_VALUE rm_retval
17+
RESULT_VARIABLE rm_retval
1818
)
1919
if(NOT "${rm_retval}" STREQUAL 0)
2020
message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${file}")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.