Skip to content

Commit 4d793c6

Browse files
authored
Set interface include directory for the subprocess target (#201)
1 parent d781b8f commit 4d793c6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/modules/EmitSwiftInterface.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ function(emit_swift_interface target)
3838
target_sources(${target}
3939
INTERFACE
4040
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/${module_name}.swiftmodule/${${PROJECT_NAME}_MODULE_TRIPLE}.swiftmodule>)
41+
42+
set_target_properties(${target} PROPERTIES
43+
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_BINARY_DIR})
4144

4245
# Generate textual swift interfaces is library-evolution is enabled
4346
if(${PROJECT_NAME}_ENABLE_LIBRARY_EVOLUTION)

0 commit comments

Comments
 (0)