Not parsing llvm cmake when using external clang
This speeds up the cmake project regeneration.
This commit is contained in:
parent
5a9d304c87
commit
ee3ea72e3c
@ -70,6 +70,9 @@ else()
|
|||||||
"Your C++ compiler does NOT support C++11, compiling in C++03 mode." )
|
"Your C++ compiler does NOT support C++11, compiling in C++03 mode." )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if ( NOT EXTERNAL_LIBCLANG_PATH AND NOT USE_SYSTEM_LIBCLANG )
|
||||||
add_subdirectory( llvm )
|
add_subdirectory( llvm )
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory( BoostParts )
|
add_subdirectory( BoostParts )
|
||||||
add_subdirectory( ycm )
|
add_subdirectory( ycm )
|
||||||
|
@ -33,8 +33,10 @@ include_directories(
|
|||||||
SYSTEM
|
SYSTEM
|
||||||
${BoostParts_SOURCE_DIR}
|
${BoostParts_SOURCE_DIR}
|
||||||
${PYTHON_INCLUDE_DIRS}
|
${PYTHON_INCLUDE_DIRS}
|
||||||
"${LLVM_SOURCE_DIR}/include"
|
# We need CMAKE_SOURCE_DIR here instead of LLVM_SOURCE_DIR because the llvm
|
||||||
"${LLVM_SOURCE_DIR}/tools/clang/include"
|
# 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 )
|
file( GLOB_RECURSE SOURCES *.h *.cpp )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user