Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: tools/clang/CMakeLists.txt

Issue 2394203003: Support external clang source directory in //tools/clang/CMakeList.txt (Closed)
Patch Set: split CL Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/CMakeLists.txt
diff --git a/tools/clang/CMakeLists.txt b/tools/clang/CMakeLists.txt
index f7c93c383a9e0ee4f6b353d280dc2282afdbd0cb..addcb5645183cebe3aa7519973914c223184bdf8 100644
--- a/tools/clang/CMakeLists.txt
+++ b/tools/clang/CMakeLists.txt
@@ -19,15 +19,21 @@ else(UNIX)
endif()
include_directories("${CMAKE_SOURCE_DIR}/include"
- "${CMAKE_SOURCE_DIR}/tools/clang/include"
"${CMAKE_BINARY_DIR}/include"
"${CMAKE_BINARY_DIR}/tools/clang/include")
link_directories("${CMAKE_SOURCE_DIR}/lib"
- "${CMAKE_SOURCE_DIR}/tools/clang/lib"
"${CMAKE_BINARY_DIR}/lib"
"${CMAKE_BINARY_DIR}/tools/clang/lib")
+if (DEFINED LLVM_EXTERNAL_CLANG_SOURCE_DIR)
+ include_directories("${LLVM_EXTERNAL_CLANG_SOURCE_DIR}/include")
+ link_directories("${LLVM_EXTERNAL_CLANG_SOURCE_DIR}/lib")
+else ()
+ include_directories("${CMAKE_SOURCE_DIR}/tools/clang/include")
+ link_directories("${CMAKE_SOURCE_DIR}/tools/clang/lib")
+endif ()
+
# Tests for all enabled tools can be run by building this target.
add_custom_target(cr-check-all COMMAND ${CMAKE_CTEST_COMMAND} -V)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698