File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,13 @@ if(BSD_OVERLAY_FOUND)
39
39
${BSD_OVERLAY_LDFLAGS} )
40
40
endif ()
41
41
42
+ if (CMAKE_SWIFT_RUNTIME_LIBDIR )
43
+ target_link_libraries (bsdtestharness
44
+ PRIVATE
45
+ -L${CMAKE_SWIFT_RUNTIME_LIBDIR} -lswiftCore -lswiftSwiftOnoneSupport
46
+ -Wl,-rpath -Wl,${CMAKE_SWIFT_RUNTIME_LIBDIR} )
47
+ endif ()
48
+
42
49
function (add_unit_test name )
43
50
set (options DISABLED_TEST )
44
51
set (single_value_args )
@@ -77,6 +84,12 @@ function(add_unit_test name)
77
84
PRIVATE
78
85
${BSD_OVERLAY_LDFLAGS} )
79
86
endif ()
87
+ if (CMAKE_SWIFT_RUNTIME_LIBDIR )
88
+ target_link_libraries (${name}
89
+ PRIVATE
90
+ -L${CMAKE_SWIFT_RUNTIME_LIBDIR} -lswiftCore -lswiftSwiftOnoneSupport
91
+ -Wl,-rpath -Wl,${CMAKE_SWIFT_RUNTIME_LIBDIR} )
92
+ endif ()
80
93
target_link_libraries (${name} PRIVATE bsdtests )
81
94
add_test (NAME ${name}
82
95
COMMAND bsdtestharness $< TARGET_FILE:${name} > )
You can’t perform that action at this time.
0 commit comments