remove setcap

This commit is contained in:
Jake Hillion 2023-01-04 09:58:27 -08:00 committed by Jake Hillion
parent bad14de1e2
commit 0384d1c144

View File

@ -35,19 +35,6 @@ endif()
## System checks
## These checks are potentially fatal so perform them first.
### Require sudo and setcap (for setting oid capabilities)
find_program(SETCAP setcap)
if(NOT SETCAP)
message(FATAL_ERROR "setcap not found - please install")
endif()
if(NOT EXISTS "/etc/centos-release")
find_program(SUDO sudo)
if(NOT SUDO)
message(FATAL_ERROR "sudo not found - please install")
endif()
endif()
### (Re)download submodules
find_package(Git QUIET)
@ -336,10 +323,6 @@ else()
endif()
target_link_libraries(oid oicore treebuilder)
add_custom_command(TARGET oid POST_BUILD
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
COMMAND sudo setcap cap_sys_ptrace+ep ./oid)
### Object Introspection Tests
if (WITH_TESTS)
add_subdirectory(test)