From c81f56d9ec9e58d68187579af40d0ef645843766 Mon Sep 17 00:00:00 2001 From: Oscar Fuentes Date: Sun, 16 Aug 2009 20:56:30 +0000 Subject: CMake: New option LLVM_BUILD_TOOLS. Renamed LLVM_EXAMPLES to 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 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index c8e86d0d3c..3067118108 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 () -- cgit v1.2.3