vcpkg/ports/cyclonedds/enable-security.patch

14 lines
534 B
Diff
Raw Normal View History

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>>)