[cfe-commits] r149037 - in /cfe/trunk: CMakeLists.txt examples/CMakeLists.txt
Peter Collingbourne
peter at pcc.me.uk
Wed Jan 25 19:33:41 PST 2012
Author: pcc
Date: Wed Jan 25 21:33:40 2012
New Revision: 149037
URL: http://llvm.org/viewvc/llvm-project?rev=149037&view=rev
Log:
Adjust CLANG_BUILD_EXAMPLES to mean whether the examples are built
by default, rather than whether they may be built at all.
Modified:
cfe/trunk/CMakeLists.txt
cfe/trunk/examples/CMakeLists.txt
Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=149037&r1=149036&r2=149037&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Wed Jan 25 21:33:40 2012
@@ -246,10 +246,8 @@
add_subdirectory(utils/TableGen)
-option(CLANG_BUILD_EXAMPLES "Build CLANG example programs." OFF)
-if(CLANG_BUILD_EXAMPLES)
- add_subdirectory(examples)
-endif ()
+option(CLANG_BUILD_EXAMPLES "Build CLANG example programs by default." OFF)
+add_subdirectory(examples)
add_subdirectory(include)
add_subdirectory(lib)
Modified: cfe/trunk/examples/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/CMakeLists.txt?rev=149037&r1=149036&r2=149037&view=diff
==============================================================================
--- cfe/trunk/examples/CMakeLists.txt (original)
+++ cfe/trunk/examples/CMakeLists.txt Wed Jan 25 21:33:40 2012
@@ -1,2 +1,6 @@
+if(NOT CLANG_BUILD_EXAMPLES)
+ set(EXCLUDE_FROM_ALL ON)
+endif()
+
add_subdirectory(clang-interpreter)
add_subdirectory(PrintFunctionNames)
More information about the cfe-commits
mailing list