vcpkg/ports/cyclonedds/enable-security.patch
Andrew Kornilov 0ba60bfef5
[cyclonedds] Add new port (#29150)
* [cyclonedds] Add new port

* [cyclonedds] Update supports

* [cyclonedds] Update version

* Add usage, vcpkg_fixup_pkgconfig.

* [cyclonedds] Update ddsperf dependencies

---------

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2023-02-03 18:46:10 -08:00

14 lines
534 B
Diff

diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 148fb3f2..c9c4d96c 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -43,7 +43,7 @@ endif()
# Support the OMG DDS Security within ddsc adds quite a bit of code.
if(ENABLE_SECURITY)
- target_link_libraries(ddsc PRIVATE security_core)
+ target_link_libraries(ddsc PRIVATE $<BUILD_INTERFACE:security_core>)
target_include_directories(
ddsc PUBLIC
$<BUILD_INTERFACE:$<TARGET_PROPERTY:security_api,INTERFACE_INCLUDE_DIRECTORIES>>)