|
@@ -335,13 +335,17 @@ option(CLANG_INCLUDE_TESTS
|
|
"Generate build targets for the Clang unit tests."
|
|
"Generate build targets for the Clang unit tests."
|
|
${LLVM_INCLUDE_TESTS})
|
|
${LLVM_INCLUDE_TESTS})
|
|
|
|
|
|
-# TODO: docs.
|
|
|
|
-
|
|
|
|
if( CLANG_INCLUDE_TESTS )
|
|
if( CLANG_INCLUDE_TESTS )
|
|
add_subdirectory(test)
|
|
add_subdirectory(test)
|
|
add_subdirectory(unittests)
|
|
add_subdirectory(unittests)
|
|
endif()
|
|
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
|
|
# Workaround for MSVS10 to avoid the Dialog Hell
|
|
# FIXME: This could be removed with future version of CMake.
|
|
# FIXME: This could be removed with future version of CMake.
|
|
if( CLANG_BUILT_STANDALONE AND MSVC_VERSION EQUAL 1600 )
|
|
if( CLANG_BUILT_STANDALONE AND MSVC_VERSION EQUAL 1600 )
|