forked from OSchip/llvm-project
[CMake] Make clang/tools subdirectories controlled via options
Setting CLANG_TOOL_*_BUILD=Off on the CMake command line will disable inclusion of a clang/tools subdirectory. llvm-svn: 250840
This commit is contained in:
parent
077fe12e5d
commit
0eb2d8794e
|
@ -348,6 +348,10 @@ macro(set_clang_windows_version_resource_properties name)
|
|||
endif()
|
||||
endmacro()
|
||||
|
||||
macro(add_clang_subdirectory name)
|
||||
add_llvm_subdirectory(CLANG TOOL ${name})
|
||||
endmacro()
|
||||
|
||||
macro(add_clang_library name)
|
||||
cmake_parse_arguments(ARG
|
||||
""
|
||||
|
|
|
@ -1,19 +1,21 @@
|
|||
add_subdirectory(diagtool)
|
||||
add_subdirectory(driver)
|
||||
add_subdirectory(clang-format)
|
||||
add_subdirectory(clang-format-vs)
|
||||
add_subdirectory(clang-fuzzer)
|
||||
create_subdirectory_options(CLANG TOOL)
|
||||
|
||||
add_subdirectory(c-index-test)
|
||||
add_subdirectory(libclang)
|
||||
add_clang_subdirectory(diagtool)
|
||||
add_clang_subdirectory(driver)
|
||||
add_clang_subdirectory(clang-format)
|
||||
add_clang_subdirectory(clang-format-vs)
|
||||
add_clang_subdirectory(clang-fuzzer)
|
||||
|
||||
add_clang_subdirectory(c-index-test)
|
||||
add_clang_subdirectory(libclang)
|
||||
|
||||
if(CLANG_ENABLE_ARCMT)
|
||||
add_subdirectory(arcmt-test)
|
||||
add_subdirectory(c-arcmt-test)
|
||||
add_clang_subdirectory(arcmt-test)
|
||||
add_clang_subdirectory(c-arcmt-test)
|
||||
endif()
|
||||
|
||||
if(CLANG_ENABLE_STATIC_ANALYZER)
|
||||
add_subdirectory(clang-check)
|
||||
add_clang_subdirectory(clang-check)
|
||||
endif()
|
||||
|
||||
# We support checking out the clang-tools-extra repository into the 'extra'
|
||||
|
|
Loading…
Reference in New Issue