by default, rather than whether they may be built at all.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149037
91177308-0d34-0410-b5e6-
96231b3b80d8
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)
+if(NOT CLANG_BUILD_EXAMPLES)
+ set(EXCLUDE_FROM_ALL ON)
+endif()
+
add_subdirectory(clang-interpreter)
add_subdirectory(PrintFunctionNames)