File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -294,14 +294,17 @@ target_compile_options(swiftCore PRIVATE
294294 "$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -group-info-path -Xfrontend ${CMAKE_CURRENT_SOURCE_DIR} /GroupInfo.json>"
295295 "$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -disable-objc-attr-requires-foundation-module>"
296296 "$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -require-explicit-availability=ignore>" )
297-
298297if (NOT "${CMAKE_BUILD_TYPE} " STREQUAL "MinSizeRel" )
299298 # Using these in MinSizeRel would result in a 15% increase in the binary size
300299 target_compile_options (swiftCore PRIVATE
301300 "$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xllvm -sil-inline-generics>"
302301 "$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xllvm -sil-partial-specialization>" )
303302endif ()
304303
304+ # FIXME: Why is this not implicitly in the interface flags?
305+ target_include_directories (swiftCore INTERFACE
306+ "$<$<COMPILE_LANGUAGE:Swift>:$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR} >$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${SwiftCore_INSTALL_SWIFTMODULEDIR} >>" )
307+
305308target_link_libraries (swiftCore
306309 PRIVATE
307310 swiftRuntime
You can’t perform that action at this time.
0 commit comments