forked from OSchip/llvm-project
Adjust CLANG_BUILD_EXAMPLES to mean whether the examples are built
by default, rather than whether they may be built at all. llvm-svn: 149037
This commit is contained in:
parent
1425b4556a
commit
53860cfeb0
|
@ -246,10 +246,8 @@ mark_as_advanced(CLANG_EXECUTABLE_VERSION LIBCLANG_LIBRARY_VERSION)
|
||||||
|
|
||||||
add_subdirectory(utils/TableGen)
|
add_subdirectory(utils/TableGen)
|
||||||
|
|
||||||
option(CLANG_BUILD_EXAMPLES "Build CLANG example programs." OFF)
|
option(CLANG_BUILD_EXAMPLES "Build CLANG example programs by default." OFF)
|
||||||
if(CLANG_BUILD_EXAMPLES)
|
add_subdirectory(examples)
|
||||||
add_subdirectory(examples)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
add_subdirectory(include)
|
add_subdirectory(include)
|
||||||
add_subdirectory(lib)
|
add_subdirectory(lib)
|
||||||
|
|
|
@ -1,2 +1,6 @@
|
||||||
|
if(NOT CLANG_BUILD_EXAMPLES)
|
||||||
|
set(EXCLUDE_FROM_ALL ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory(clang-interpreter)
|
add_subdirectory(clang-interpreter)
|
||||||
add_subdirectory(PrintFunctionNames)
|
add_subdirectory(PrintFunctionNames)
|
||||||
|
|
Loading…
Reference in New Issue