From 5dd4272c4780ce82641583a966168cade0c0f045 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 16 Jun 2009 22:25:45 +0000 Subject: CMake: Only include LLVM example executables in the build if requested by the user git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73566 91177308-0d34-0410-b5e6-96231b3b80d8 --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index de3e159476..543ee7f880 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 . -- cgit v1.2.3