]> granicus.if.org Git - clang/commitdiff
Add optional CMake build for Clang examples, patch by Kovarththanan Rajaratnam.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 17 Nov 2009 09:32:51 +0000 (09:32 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 17 Nov 2009 09:32:51 +0000 (09:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89078 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index 7f4ab33b33a4a3901e9e962905f5161e272f9461..9e84d94a3b6429181b7dba92b6dd38d88f22be59 100644 (file)
@@ -94,6 +94,11 @@ install(DIRECTORY include/
 
 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)