[cfe-commits] r89078 - /cfe/trunk/CMakeLists.txt
Daniel Dunbar
daniel at zuster.org
Tue Nov 17 01:32:51 PST 2009
Author: ddunbar
Date: Tue Nov 17 03:32:51 2009
New Revision: 89078
URL: http://llvm.org/viewvc/llvm-project?rev=89078&view=rev
Log:
Add optional CMake build for Clang examples, patch by Kovarththanan Rajaratnam.
Modified:
cfe/trunk/CMakeLists.txt
Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=89078&r1=89077&r2=89078&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Tue Nov 17 03:32:51 2009
@@ -94,6 +94,11 @@
add_definitions( -D_GNU_SOURCE )
+option(CLANG_BUILD_EXAMPLES "Build CLANG example programs." OFF)
+if(CLANG_BUILD_EXAMPLES)
+ add_subdirectory(examples)
+endif ()
+
add_subdirectory(include)
add_subdirectory(lib)
add_subdirectory(tools)
More information about the cfe-commits
mailing list