aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cyclonedds/enable-security.patch
blob: a41427298693e445f6bc450cfebedb745069a9d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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>>)