diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2010-09-25 20:43:06 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2010-09-25 20:43:06 +0000 |
commit | a6c1dbd541d93359a7dd8fbcba3d7f0bf77e60c5 (patch) | |
tree | 7d9cc3639ff0b3056cf9ae96757974062654425b /CMakeLists.txt | |
parent | 429c75b8654b0d1069f1897375f5801a4c5de017 (diff) | |
download | external_llvm-a6c1dbd541d93359a7dd8fbcba3d7f0bf77e60c5.zip external_llvm-a6c1dbd541d93359a7dd8fbcba3d7f0bf77e60c5.tar.gz external_llvm-a6c1dbd541d93359a7dd8fbcba3d7f0bf77e60c5.tar.bz2 |
New cmake options LLVM_INCLUDE_X (X = {TOOLS, EXAMPLES, TESTS}) for
not generating build targets for those parts of the build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114797 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7959f65..f32ba0c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -363,17 +363,28 @@ add_subdirectory(lib/Archive) add_subdirectory(projects) -option(LLVM_BUILD_TOOLS "Build LLVM tool programs." ON) -add_subdirectory(tools) - -option(LLVM_BUILD_EXAMPLES "Build LLVM example programs." OFF) -add_subdirectory(examples) +option(LLVM_BUILD_TOOLS + "Build the LLVM tools. If OFF, just generate build targets." ON) +option(LLVM_INCLUDE_TOOLS "Generate build targets for the LLVM tools." ON) +if( LLVM_INCLUDE_TOOLS ) + add_subdirectory(tools) +endif() -option(LLVM_BUILD_TESTS "Build LLVM unit tests." OFF) -add_subdirectory(test) -add_subdirectory(utils/unittest) -add_subdirectory(unittests) +option(LLVM_BUILD_EXAMPLES + "Build the LLVM example programs. If OFF, just generate build targets." OFF) +option(LLVM_INCLUDE_EXAMPLES "Generate build targets for the LLVM examples" ON) +if( LLVM_INCLUDE_EXAMPLES ) + add_subdirectory(examples) +endif() +option(LLVM_BUILD_TESTS + "Build LLVM unit tests. If OFF, just generate build targes." OFF) +option(LLVM_INCLUDE_TESTS "Generate build targets for the LLVM unit tests." ON) +if( LLVM_INCLUDE_TESTS ) + add_subdirectory(test) + add_subdirectory(utils/unittest) + add_subdirectory(unittests) +endif() add_subdirectory(cmake/modules) |