File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
tools/SourceKit/tools/sourcekitd-test Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -393,6 +393,17 @@ if("${SWIFT_NATIVE_SWIFT_TOOLS_PATH}" STREQUAL "")
393
393
set (SWIFT_NATIVE_SWIFT_TOOLS_PATH "${SWIFT_RUNTIME_OUTPUT_INTDIR} " )
394
394
endif ()
395
395
396
+ # This setting causes all CMakeLists.txt to automatically have
397
+ # ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CURRENT_SOURCE_DIR} as an
398
+ # include_directories path. This is done for developer
399
+ # convenience. Additionally, LLVM/Clang build with this option enabled, so we
400
+ # should match them unless it is removed from LLVM/Clang as well.
401
+ #
402
+ # *NOTE* Even though these directories are added to the include path for a
403
+ # specific CMakeLists.txt, these include paths are not propagated down to
404
+ # subdirectories.
405
+ set (CMAKE_INCLUDE_CURRENT_DIR ON )
406
+
396
407
# We'll need this once we have generated headers
397
408
include_directories (BEFORE
398
409
${CMAKE_CURRENT_BINARY_DIR} /include
Original file line number Diff line number Diff line change @@ -23,7 +23,5 @@ add_swift_library(swiftClangImporter STATIC
23
23
swiftParse
24
24
)
25
25
26
- # Include the current binary dir since we rely on gybed files.
27
- include_directories (${CMAKE_CURRENT_BINARY_DIR} )
28
26
29
27
add_dependencies (swiftClangImporter "${generated_include_targets} " )
Original file line number Diff line number Diff line change 1
1
set (LLVM_TARGET_DEFINITIONS Options .td )
2
2
swift_tablegen (Options .inc -gen-opt-parser-defs )
3
3
swift_add_public_tablegen_target (sourcekitdTestOptionsTableGen )
4
- # Add this directories binary directory to the include list to make sure that we
5
- # can properly include Options.inc.
6
- include_directories (${CMAKE_CURRENT_BINARY_DIR} )
7
4
8
5
if (SWIFT_SOURCEKIT_USE_INPROC_LIBRARY )
9
6
set (SOURCEKITD_TEST_DEPEND sourcekitdInProc )
You can’t perform that action at this time.
0 commit comments