diff options
-rw-r--r-- | meta-oe/recipes-support/cli11/cli11_1.6.2.bb | 5 | ||||
-rw-r--r-- | meta-oe/recipes-support/cli11/files/0001-Add-CLANG_TIDY-check.patch | 27 |
2 files changed, 31 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/cli11/cli11_1.6.2.bb b/meta-oe/recipes-support/cli11/cli11_1.6.2.bb index 6899b1264b..e62c1d3d13 100644 --- a/meta-oe/recipes-support/cli11/cli11_1.6.2.bb +++ b/meta-oe/recipes-support/cli11/cli11_1.6.2.bb | |||
@@ -6,11 +6,14 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c271fee3ae28e11b24b97284d9f82887" | |||
6 | SRCREV = "bd4dc911847d0cde7a6b41dfa626a85aab213baf" | 6 | SRCREV = "bd4dc911847d0cde7a6b41dfa626a85aab213baf" |
7 | PV .= "+git${SRCPV}" | 7 | PV .= "+git${SRCPV}" |
8 | 8 | ||
9 | SRC_URI += "gitsm://github.com/CLIUtils/CLI11" | 9 | SRC_URI += "gitsm://github.com/CLIUtils/CLI11 \ |
10 | file://0001-Add-CLANG_TIDY-check.patch \ | ||
11 | " | ||
10 | 12 | ||
11 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |
12 | 14 | ||
13 | inherit cmake | 15 | inherit cmake |
14 | inherit ptest | 16 | inherit ptest |
15 | 17 | ||
18 | EXTRA_OECMAKE += "-DCLANG_TIDY=OFF" | ||
16 | DEPENDS += "boost" | 19 | DEPENDS += "boost" |
diff --git a/meta-oe/recipes-support/cli11/files/0001-Add-CLANG_TIDY-check.patch b/meta-oe/recipes-support/cli11/files/0001-Add-CLANG_TIDY-check.patch new file mode 100644 index 0000000000..bef3548a29 --- /dev/null +++ b/meta-oe/recipes-support/cli11/files/0001-Add-CLANG_TIDY-check.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From ef6310bc726a53ff6b45071633fa7b37224cae96 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 12 Feb 2019 13:22:21 -0800 | ||
4 | Subject: [PATCH] Add CLANG_TIDY check | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | CMakeLists.txt | 2 +- | ||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
13 | index 79404b8..f68217d 100644 | ||
14 | --- a/CMakeLists.txt | ||
15 | +++ b/CMakeLists.txt | ||
16 | @@ -39,7 +39,7 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) | ||
17 | add_definitions(-Wall -Wextra -pedantic) | ||
18 | endif() | ||
19 | |||
20 | - if(CMAKE_VERSION VERSION_GREATER 3.6) | ||
21 | + if(CMAKE_VERSION VERSION_GREATER 3.6 AND CLANG_TIDY) | ||
22 | # Add clang-tidy if available | ||
23 | option(CLANG_TIDY_FIX "Perform fixes for Clang-Tidy" OFF) | ||
24 | find_program( | ||
25 | -- | ||
26 | 2.20.1 | ||
27 | |||