diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-06-16 22:25:45 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-06-16 22:25:45 +0000 |
commit | 32f546b77ef2be7dd261a9fc6049c87f7f479423 (patch) | |
tree | 002708cd92abb81afeac95828e5cdf590bb2de20 | |
parent | b8a82ff218758749fc3e6be342e291da3fa93c98 (diff) | |
download | bcm5719-llvm-32f546b77ef2be7dd261a9fc6049c87f7f479423.tar.gz bcm5719-llvm-32f546b77ef2be7dd261a9fc6049c87f7f479423.zip |
CMake: Only include LLVM example executables in the build if requested by the user
llvm-svn: 73566
-rw-r--r-- | llvm/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index de3e1594762..543ee7f8807 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/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 . |