diff --git a/CMakeLists.txt b/CMakeLists.txt index de3e1594762..543ee7f8807 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -287,7 +287,10 @@ add_subdirectory(lib/Archive) add_subdirectory(projects) add_subdirectory(tools) -add_subdirectory(examples) +option(LLVM_EXAMPLES "Build LLVM example programs." OFF) +if (LLVM_EXAMPLES) + add_subdirectory(examples) +endif () install(DIRECTORY include DESTINATION .