From: Abdoulbari ZAKIR Date: Wed, 5 May 2021 10:46:26 +0000 (+0200) Subject: spns #20216 : patch cmake added X-Git-Tag: V9_8_0~103 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=345ede9dc397e3f32fb7cad1a22ac4042b92545f;p=tools%2Fsat_salome.git spns #20216 : patch cmake added --- 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 + }