summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2018-04-17 09:05:54 +0200
committerNikolai Kosjar <nikolai.kosjar@qt.io>2018-04-20 12:57:01 +0000
commit6e79722cc0007c53b74a0f804767ef2565c20ef4 (patch)
tree1c6f71c5eb43a25ab6b1b410abff2a64fb05c30c
parent0ea5aed4817afebb7fbdea644b723052a0ef370c (diff)
Build Clazy inside tools/extra
Provide special extra flag for Clazy to make it know it's built inside clang sources and add it's folder as tools/extra subfolder. Change-Id: I3feaff67fbbf8016c09dd88737398417581e6ae9 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 760340a6..53f720c4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,6 +5,8 @@ if(CLANG_ENABLE_STATIC_ANALYZER)
add_subdirectory(clang-tidy)
add_subdirectory(clang-tidy-vs)
endif()
+set(CLAZY_BUILD_WITH_CLANG 1)
+add_subdirectory(clazy)
add_subdirectory(change-namespace)
add_subdirectory(clang-query)