mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-09-19 19:19:05 +01:00
remove setcap
This commit is contained in:
parent
bad14de1e2
commit
0384d1c144
@ -35,19 +35,6 @@ endif()
|
|||||||
## System checks
|
## System checks
|
||||||
## These checks are potentially fatal so perform them first.
|
## 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
|
### (Re)download submodules
|
||||||
find_package(Git QUIET)
|
find_package(Git QUIET)
|
||||||
|
|
||||||
@ -336,10 +323,6 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
target_link_libraries(oid oicore treebuilder)
|
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
|
### Object Introspection Tests
|
||||||
if (WITH_TESTS)
|
if (WITH_TESTS)
|
||||||
add_subdirectory(test)
|
add_subdirectory(test)
|
||||||
|
Loading…
Reference in New Issue
Block a user