From 4978a564d5a43db977677bb9606747ee75a73158 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Mon, 30 Sep 2019 15:43:44 -0700 Subject: [PATCH] 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. --- src/swift/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/swift/CMakeLists.txt b/src/swift/CMakeLists.txt index 18a297f90..ba987e747 100644 --- a/src/swift/CMakeLists.txt +++ b/src/swift/CMakeLists.txt @@ -34,10 +34,12 @@ target_compile_options(swiftDispatch PRIVATE "SHELL:-Xcc -I${PROJECT_SOURCE_DIR}") set_target_properties(swiftDispatch PROPERTIES Swift_MODULE_NAME Dispatch - Swift_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/swift) + Swift_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/swift + INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_BINARY_DIR}/swift) target_link_libraries(swiftDispatch PRIVATE DispatchStubs - BlocksRuntime::BlocksRuntime + BlocksRuntime::BlocksRuntime) +target_link_libraries(swiftDispatch PUBLIC dispatch) add_dependencies(swiftDispatch module-maps)