Skip to content

Commit 4978a56

Browse files
committed
build: make some linkage flags public
Some of the compiler and linker flags need to be used by dependent libraries which requires making the flags public so that users of the libraries and the export targets are setup properly.
1 parent b0b314c commit 4978a56

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/swift/CMakeLists.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ target_compile_options(swiftDispatch PRIVATE
3434
"SHELL:-Xcc -I${PROJECT_SOURCE_DIR}")
3535
set_target_properties(swiftDispatch PROPERTIES
3636
Swift_MODULE_NAME Dispatch
37-
Swift_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/swift)
37+
Swift_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/swift
38+
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_BINARY_DIR}/swift)
3839
target_link_libraries(swiftDispatch PRIVATE
3940
DispatchStubs
40-
BlocksRuntime::BlocksRuntime
41+
BlocksRuntime::BlocksRuntime)
42+
target_link_libraries(swiftDispatch PUBLIC
4143
dispatch)
4244
add_dependencies(swiftDispatch module-maps)
4345

0 commit comments

Comments
 (0)