this repo has no description
1include(FindSetcap)
2
3function(setcap file caps)
4install(CODE "execute_process(
5 COMMAND
6 ${SETCAP_EXECUTABLE}
7 ${caps}
8 \$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/${file}
9 RESULT_VARIABLE
10 _SETCAP_RESULT
11 )
12 if( _SETCAP_RESULT )
13 message( WARNING \"setcap failed (${_SETCAP_RESULT}).\")
14 endif()"
15)
16
17endfunction(setcap)
18