Not parsing llvm cmake when using external clang

This speeds up the cmake project regeneration.
This commit is contained in:
Strahinja Val Markovic 2012-08-11 18:59:54 -07:00
parent 5a9d304c87
commit ee3ea72e3c
2 changed files with 8 additions and 3 deletions

View File

@ -70,6 +70,9 @@ else()
"Your C++ compiler does NOT support C++11, compiling in C++03 mode." )
endif()
add_subdirectory( llvm )
if ( NOT EXTERNAL_LIBCLANG_PATH AND NOT USE_SYSTEM_LIBCLANG )
add_subdirectory( llvm )
endif()
add_subdirectory( BoostParts )
add_subdirectory( ycm )

View File

@ -33,8 +33,10 @@ include_directories(
SYSTEM
${BoostParts_SOURCE_DIR}
${PYTHON_INCLUDE_DIRS}
"${LLVM_SOURCE_DIR}/include"
"${LLVM_SOURCE_DIR}/tools/clang/include"
# We need CMAKE_SOURCE_DIR here instead of LLVM_SOURCE_DIR because the llvm
# subdir may not have been included in the build
"${CMAKE_SOURCE_DIR}/llvm/include"
"${CMAKE_SOURCE_DIR}/llvm/tools/clang/include"
)
file( GLOB_RECURSE SOURCES *.h *.cpp )