[cfe-commits] r165620 - /cfe/trunk/tools/CMakeLists.txt
NAKAMURA Takumi
geek4civic at gmail.com
Wed Oct 10 06:46:18 PDT 2012
Author: chapuni
Date: Wed Oct 10 08:46:18 2012
New Revision: 165620
URL: http://llvm.org/viewvc/llvm-project?rev=165620&view=rev
Log:
[CMake] clang/tools/extra may be included by LLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR.
LLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR=/path/to/llvm-srcroot/tools/clang/tools/extra, by default.
Modified:
cfe/trunk/tools/CMakeLists.txt
Modified: cfe/trunk/tools/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/CMakeLists.txt?rev=165620&r1=165619&r2=165620&view=diff
==============================================================================
--- cfe/trunk/tools/CMakeLists.txt (original)
+++ cfe/trunk/tools/CMakeLists.txt Wed Oct 10 08:46:18 2012
@@ -10,7 +10,5 @@
# subdirectory. It contains tools developed as part of the Clang/LLVM project
# on top of the Clang tooling platform. We keep them in a separate repository
# to keep the primary Clang repository small and focused.
-if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/extra AND
- EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/extra/CMakeLists.txt)
- add_subdirectory(extra)
-endif()
+# It also may be included by LLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR.
+add_llvm_external_project(clang-tools-extra extra)
More information about the cfe-commits
mailing list