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:
Peter Collingbourne 2012-01-26 03:33:40 +00:00
parent 1425b4556a
commit 53860cfeb0
2 changed files with 6 additions and 4 deletions

View File

@ -246,10 +246,8 @@ mark_as_advanced(CLANG_EXECUTABLE_VERSION LIBCLANG_LIBRARY_VERSION)
add_subdirectory(utils/TableGen)
option(CLANG_BUILD_EXAMPLES "Build CLANG example programs." OFF)
if(CLANG_BUILD_EXAMPLES)
add_subdirectory(examples)
endif ()
option(CLANG_BUILD_EXAMPLES "Build CLANG example programs by default." OFF)
add_subdirectory(examples)
add_subdirectory(include)
add_subdirectory(lib)

View File

@ -1,2 +1,6 @@
if(NOT CLANG_BUILD_EXAMPLES)
set(EXCLUDE_FROM_ALL ON)
endif()
add_subdirectory(clang-interpreter)
add_subdirectory(PrintFunctionNames)