1 set(LLVM_LINK_COMPONENTS mc) 2 3 add_clang_library(clangBasic 4 Builtins.cpp 5 ConvertUTF.c 6 ConvertUTFWrapper.cpp 7 Diagnostic.cpp 8 DiagnosticIDs.cpp 9 FileManager.cpp 10 FileSystemStatCache.cpp 11 IdentifierTable.cpp 12 LangOptions.cpp 13 Module.cpp 14 ObjCRuntime.cpp 15 SourceLocation.cpp 16 SourceManager.cpp 17 TargetInfo.cpp 18 Targets.cpp 19 TokenKinds.cpp 20 Version.cpp 21 VersionTuple.cpp 22 ) 23 24 # Determine Subversion revision. 25 # FIXME: This only gets updated when CMake is run, so this revision number 26 # may be out-of-date! 27 if( NOT IS_SYMLINK "${CLANG_SOURCE_DIR}" ) # See PR 8437 28 find_package(Subversion) 29 endif() 30 if (Subversion_FOUND AND EXISTS "${CLANG_SOURCE_DIR}/.svn") 31 Subversion_WC_INFO(${CLANG_SOURCE_DIR} CLANG) 32 set_source_files_properties(Version.cpp 33 PROPERTIES COMPILE_DEFINITIONS "SVN_REVISION=\"${CLANG_WC_REVISION}\"") 34 endif() 35 36 add_dependencies(clangBasic 37 ClangARMNeon 38 ClangAttrList 39 ClangDiagnosticAnalysis 40 ClangDiagnosticAST 41 ClangDiagnosticComment 42 ClangDiagnosticCommon 43 ClangDiagnosticDriver 44 ClangDiagnosticFrontend 45 ClangDiagnosticGroups 46 ClangDiagnosticIndexName 47 ClangDiagnosticLex 48 ClangDiagnosticParse 49 ClangDiagnosticSema 50 ClangDiagnosticSerialization 51 ) 52