]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #20216 : patch cmake added
authorAbdoulbari ZAKIR <Abdoulbari.Zakir@cea.fr>
Wed, 5 May 2021 10:46:26 +0000 (12:46 +0200)
committerSALOME support <support-salome@cea.fr>
Thu, 9 Sep 2021 08:32:17 +0000 (10:32 +0200)
products/cmake.pyconf
products/patches/cmake-3.12.1-checkUnusedVariables.patch [new file with mode: 0644]

index 9bd309b447ce626a580ff4ce955d9600a1808e85..6161d094d59d425d5b76c3299f9cc12bc53053b4 100644 (file)
@@ -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 (file)
index 0000000..cc0337e
--- /dev/null
@@ -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
+ }