File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ set(CMAKE_CXX_STANDARD 11)
19
19
20
20
set (CMAKE_C_VISIBILITY_PRESET hidden )
21
21
22
+ # NOTE(compnerd) this is a horrible workaround for Windows to ensure that the
23
+ # tests can run as there is no rpath equivalent and `PATH` is used to lookup the
24
+ # libraries.
25
+ set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} )
26
+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} )
27
+
22
28
set (CMAKE_THREAD_PREFER_PTHREAD TRUE )
23
29
set (THREADS_PREFER_PTHREAD_FLAG TRUE )
24
30
find_package (Threads REQUIRED )
Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ if(ENABLE_SWIFT)
124
124
module-maps
125
125
DispatchStubs
126
126
LINK_FLAGS
127
+ -L $< TARGET_LINKER_FILE_DIR:DispatchStubs>
127
128
-lDispatchStubs
128
129
-L $< TARGET_LINKER_FILE_DIR:BlocksRuntime>
129
130
-lBlocksRuntime
You can’t perform that action at this time.
0 commit comments