Files
swift-mirror/unittests/SourceKit/SwiftLang/CMakeLists.txt
Argyrios Kyrtzidis 0cfc56ec04 [SourceKit] If diagnostics are 'stale' for a particular snapshot then ignore them and only return the syntactic parser diagnostics (#10388)
This makes sure that diagnostics returned for a particular state of source buffer are consistent and accurate.
rdar://32769873
2017-06-20 12:26:32 -07:00

16 lines
382 B
CMake

if(NOT SWIFT_HOST_VARIANT MATCHES "${SWIFT_DARWIN_EMBEDDED_VARIANTS}")
add_swift_unittest(SourceKitSwiftLangTests
CursorInfoTest.cpp
EditingTest.cpp
)
target_link_libraries(SourceKitSwiftLangTests
SourceKitSwiftLang
)
set_property(TARGET SourceKitSwiftLangTests APPEND_STRING PROPERTY COMPILE_FLAGS
" '-DSWIFTLIB_DIR=\"${SWIFTLIB_DIR}\"'")
endif()