[llvm-commits] [llvm] r73566 - /llvm/trunk/CMakeLists.txt

Douglas Gregor dgregor at apple.com
Tue Jun 16 15:25:45 PDT 2009


Author: dgregor
Date: Tue Jun 16 17:25:45 2009
New Revision: 73566

URL: http://llvm.org/viewvc/llvm-project?rev=73566&view=rev
Log:
CMake: Only include LLVM example executables in the build if requested by the user

Modified:
    llvm/trunk/CMakeLists.txt

Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=73566&r1=73565&r2=73566&view=diff

==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Tue Jun 16 17:25:45 2009
@@ -287,7 +287,10 @@
 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 .





More information about the llvm-commits mailing list