mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-12 21:56:54 +00:00
remove setcap
This commit is contained in:
parent
bad14de1e2
commit
0384d1c144
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user