summaryrefslogtreecommitdiffstats
path: root/clang/examples
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2012-01-26 03:33:40 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2012-01-26 03:33:40 +0000
commit53860cfeb0f4bdd2ef2341624b4a662498d8d329 (patch)
tree78ced7a73dba40f793e178360f197a4d733f08db /clang/examples
parent1425b4556a9b97e5b1cbca441ee08bee151fdb9f (diff)
downloadbcm5719-llvm-53860cfeb0f4bdd2ef2341624b4a662498d8d329.tar.gz
bcm5719-llvm-53860cfeb0f4bdd2ef2341624b4a662498d8d329.zip
Adjust CLANG_BUILD_EXAMPLES to mean whether the examples are built
by default, rather than whether they may be built at all. llvm-svn: 149037
Diffstat (limited to 'clang/examples')
-rw-r--r--clang/examples/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/examples/CMakeLists.txt b/clang/examples/CMakeLists.txt
index 317bc81637d..7f4253af2eb 100644
--- a/clang/examples/CMakeLists.txt
+++ b/clang/examples/CMakeLists.txt
@@ -1,2 +1,6 @@
+if(NOT CLANG_BUILD_EXAMPLES)
+ set(EXCLUDE_FROM_ALL ON)
+endif()
+
add_subdirectory(clang-interpreter)
add_subdirectory(PrintFunctionNames)
OpenPOWER on IntegriCloud