aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Gregor <doug.gregor@gmail.com>2009-06-16 22:25:45 +0000
committerDouglas Gregor <doug.gregor@gmail.com>2009-06-16 22:25:45 +0000
commit374cca78c9266aafb3f2ea974a787198243c7a59 (patch)
tree1227dee0ce53e061f12acbec116df63db73f2961
parenta65e4ac367c11e422442bcb83382af9ebf0d4946 (diff)
downloadexternal_llvm-374cca78c9266aafb3f2ea974a787198243c7a59.zip
external_llvm-374cca78c9266aafb3f2ea974a787198243c7a59.tar.gz
external_llvm-374cca78c9266aafb3f2ea974a787198243c7a59.tar.bz2
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
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index de3e159..543ee7f 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 .