vcpkg/ports/iceoryx/acl.patch
Andrew Kornilov 0d79ec5c39
[iceoryx] Add new port (#28730)
* [iceoryx] Add new port

* Update version database

* [iceoryx] Fix portfile

* [iceoryx] Update version

* [iceoryx] Update features

* [iceoryx] Update version

* Add usage text.

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2023-01-23 15:48:16 -08:00

25 lines
776 B
Diff

diff --git a/iceoryx_hoofs/platform/CMakeLists.txt b/iceoryx_hoofs/platform/CMakeLists.txt
index 78bad09f8..293784c06 100644
--- a/iceoryx_hoofs/platform/CMakeLists.txt
+++ b/iceoryx_hoofs/platform/CMakeLists.txt
@@ -55,6 +55,19 @@ target_link_libraries(iceoryx_platform PRIVATE ${ICEORYX_SANITIZER_FLAGS})
target_compile_options(iceoryx_platform PRIVATE ${ICEORYX_WARNINGS} ${ICEORYX_SANITIZER_FLAGS})
if(LINUX)
+ find_package(PkgConfig REQUIRED)
+ pkg_check_modules(ACL REQUIRED libacl)
+
+ target_include_directories(iceoryx_platform
+ PUBLIC
+ ${ACL_INCLUDE_DIRS}
+ )
+
+ target_link_directories(iceoryx_platform
+ PUBLIC
+ ${ACL_LIBRARY_DIRS}
+ )
+
target_link_libraries(iceoryx_platform
PUBLIC
rt