CMake: New option LLVM_BUILD_TOOLS. Renamed LLVM_EXAMPLES to
authorOscar Fuentes <ofv@wanadoo.es>
Sun, 16 Aug 2009 20:56:30 +0000 (20:56 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Sun, 16 Aug 2009 20:56:30 +0000 (20:56 +0000)
LLVM_BUILD_EXAMPLES and set default to true. Documented.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79203 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt
docs/CMake.html

index c8e86d0d3cb2514202a58bcf85bd7ce30101ee3d..3067118108935d5c9138e8958c544201de84a0a4 100644 (file)
@@ -302,10 +302,14 @@ add_subdirectory(lib/Debugger)
 add_subdirectory(lib/Archive)
 
 add_subdirectory(projects)
-add_subdirectory(tools)
 
-option(LLVM_EXAMPLES "Build LLVM example programs." OFF)
-if (LLVM_EXAMPLES)
+option(LLVM_BUILD_TOOLS "Build LLVM tool programs." ON)
+if(LLVM_BUILD_TOOLS)
+  add_subdirectory(tools)
+endif()
+
+option(LLVM_BUILD_EXAMPLES "Build LLVM example programs." ON)
+if(LLVM_BUILD_EXAMPLES)
   add_subdirectory(examples)
 endif ()
 
index 45ece02642180010b7d83dafb2a57ba53f60a8f9..d78c386f69b452686fe26788b70d1212d790f486 100644 (file)
     to <i>X86</i>. On the other cases defaults to <i>all</i>. Example:
     <i>-DLLVM_TARGETS_TO_BUILD="X86;PowerPC;Alpha"</i>.</dd>
 
+  <dt><b>LLVM_BUILD_TOOLS</b>:BOOL</dt>
+  <dd>Build LLVM tools. Defaults to ON.</dd>
+
+  <dt><b>LLVM_BUILD_EXAMPLES</b>:BOOL</dt>
+  <dd>Build LLVM examples. Defaults to ON.</dd>
+
   <dt><b>LLVM_ENABLE_THREADS</b>:BOOL</dt>
   <dd>Build with threads support, if available. Defaults to ON.</dd>