From 75ea54c7287fd3fcf5dfa82f8dcea688240f3a11 Mon Sep 17 00:00:00 2001 From: Abdoulbari ZAKIR Date: Wed, 5 May 2021 12:46:26 +0200 Subject: [PATCH] spns #20216 : patch cmake added --- products/cmake.pyconf | 2 +- .../patches/cmake-3.12.1-checkUnusedVariables.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 products/patches/cmake-3.12.1-checkUnusedVariables.patch diff --git a/products/cmake.pyconf b/products/cmake.pyconf index 9bd309b..6161d09 100644 --- a/products/cmake.pyconf +++ b/products/cmake.pyconf @@ -29,7 +29,7 @@ default : version_3_12_1: { - patches : ['cmake-3.12.1.patch'] # spns #19085 + patches : ['cmake-3.12.1.patch', 'cmake-3.12.1-checkUnusedVariables.patch'] # spns #19085 } version_3_12_1_win: diff --git a/products/patches/cmake-3.12.1-checkUnusedVariables.patch b/products/patches/cmake-3.12.1-checkUnusedVariables.patch new file mode 100644 index 0000000..cc0337e --- /dev/null +++ b/products/patches/cmake-3.12.1-checkUnusedVariables.patch @@ -0,0 +1,12 @@ +diff -Naur cmake-3.12.1/Source/cmake.cxx cmake-3.12.1_new/Source/cmake.cxx +--- cmake-3.12.1/Source/cmake.cxx 2018-08-09 14:14:08.000000000 +0200 ++++ cmake-3.12.1_new/Source/cmake.cxx 2021-05-05 12:21:45.728181956 +0200 +@@ -2589,7 +2589,7 @@ + } + } + if (haveUnused) { +- this->IssueMessage(cmake::WARNING, msg.str()); ++ this->IssueMessage(cmake::FATAL_ERROR, msg.str()); + } + #endif + } -- 2.39.2