aboutsummaryrefslogtreecommitdiff
path: root/clang/CMakeLists.txt
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-08-28 20:29:40 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-08-28 20:29:40 +0000
commit8f897af39c3dca2451e8e477e3443baee9801aff (patch)
tree157c454c169d898e2349d3296838c65410b3c03a /clang/CMakeLists.txt
parent7ed90880bc386f54f448a6b6e4c5f0fa5da0e1cb (diff)
downloadllvm-8f897af39c3dca2451e8e477e3443baee9801aff.zip
llvm-8f897af39c3dca2451e8e477e3443baee9801aff.tar.gz
llvm-8f897af39c3dca2451e8e477e3443baee9801aff.tar.bz2
[doxygen] Added code for generating doxygen documentation for clang for cmake.
llvm-svn: 189508
Diffstat (limited to 'clang/CMakeLists.txt')
-rw-r--r--clang/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt
index ab35749..6967953 100644
--- a/clang/CMakeLists.txt
+++ b/clang/CMakeLists.txt
@@ -335,13 +335,17 @@ option(CLANG_INCLUDE_TESTS
"Generate build targets for the Clang unit tests."
${LLVM_INCLUDE_TESTS})
-# TODO: docs.
-
if( CLANG_INCLUDE_TESTS )
add_subdirectory(test)
add_subdirectory(unittests)
endif()
+option(CLANG_INCLUDE_DOCS "Generate build targets for the Clang docs."
+ ${LLVM_INCLUDE_DOCS})
+if( CLANG_INCLUDE_DOCS )
+ add_subdirectory(docs)
+endif()
+
# Workaround for MSVS10 to avoid the Dialog Hell
# FIXME: This could be removed with future version of CMake.
if( CLANG_BUILT_STANDALONE AND MSVC_VERSION EQUAL 1600 )