File tree 2 files changed +30
-1
lines changed
2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,17 @@ install(FILES
16
16
DESTINATION
17
17
"${INSTALL_DISPATCH_HEADERS_DIR} " )
18
18
if (ENABLE_SWIFT)
19
- get_filename_component (MODULE_MAP module.modulemap REALPATH)
19
+ set (base_dir "${CMAKE_CURRENT_SOURCE_DIR} " )
20
+ if (NOT BUILD_SHARED_LIBS )
21
+ set (base_dir "${CMAKE_CURRENT_SOURCE_DIR} /generic_static" )
22
+ endif ()
23
+
24
+ get_filename_component (
25
+ MODULE_MAP
26
+ module.modulemap
27
+ REALPATH
28
+ BASE_DIR "${base_dir} " )
29
+
20
30
install (FILES
21
31
${MODULE_MAP}
22
32
DESTINATION
Original file line number Diff line number Diff line change
1
+ module Dispatch {
2
+ requires blocks
3
+ export *
4
+ link "dispatch"
5
+ link "BlocksRuntime"
6
+ link "DispatchStubs"
7
+ }
8
+
9
+ module DispatchIntrospection [system] [extern_c] {
10
+ header "introspection.h"
11
+ export *
12
+ }
13
+
14
+ module CDispatch [system] [extern_c] {
15
+ umbrella header "dispatch.h"
16
+ export *
17
+ requires blocks
18
+ link "dispatch"
19
+ }
You can’t perform that action at this time.
0 commit comments