mirror of
https://gitlab.com/niansa/libhss.git
synced 2025-03-06 20:49:21 +01:00
Use PkgConfig to find seccomp
This commit is contained in:
parent
972526e88b
commit
db8f46c6b1
1 changed files with 5 additions and 1 deletions
|
@ -6,7 +6,11 @@ set(CMAKE_CXX_STANDARD 17)
|
|||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
add_executable(HSSChildLauncher child_launcher.cpp)
|
||||
target_link_libraries(HSSChildLauncher PRIVATE seccomp dl)
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(seccomp REQUIRED IMPORTED_TARGET libseccomp)
|
||||
|
||||
target_link_libraries(HSSChildLauncher PRIVATE PkgConfig::seccomp dl)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
install(TARGETS HSSChildLauncher
|
||||
|
|
Loading…
Add table
Reference in a new issue