!73 [sync] PR-72: [WIP]fix cmake compile issue due to cxx standard check failed
From: @openeuler-sync-bot Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
75b6ecc3ba
13
cmake-3.27.9-fix-cxx-standard-check-issue.patch
Normal file
13
cmake-3.27.9-fix-cxx-standard-check-issue.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/Source/Checks/cm_cxx_features.cmake b/Source/Checks/cm_cxx_features.cmake
|
||||
index 02627464..4f6ccdaf 100644
|
||||
--- a/Source/Checks/cm_cxx_features.cmake
|
||||
+++ b/Source/Checks/cm_cxx_features.cmake
|
||||
@@ -44,6 +44,8 @@ function(cm_check_cxx_feature name)
|
||||
string(REGEX REPLACE "[^\n]*warning D[0-9][0-9][0-9][0-9][^\n]*" "" check_output "${check_output}")
|
||||
# Filter out warnings caused by user flags.
|
||||
string(REGEX REPLACE "[^\n]*warning:[^\n]*-Winvalid-command-line-argument[^\n]*" "" check_output "${check_output}")
|
||||
+ # Filter out clang output warnings
|
||||
+ string(REGEX REPLACE "[^\n]*warning:[^\n]*-Wunused-command-line-argument[^\n]*" "" check_output "${check_output}")
|
||||
# Filter out warnings caused by local configuration.
|
||||
string(REGEX REPLACE "[^\n]*warning:[^\n]*directory not found for option[^\n]*" "" check_output "${check_output}")
|
||||
string(REGEX REPLACE "[^\n]*warning:[^\n]*object file compiled with -mlong-branch which is no longer needed[^\n]*" "" check_output "${check_output}")
|
||||
@ -11,7 +11,7 @@
|
||||
|
||||
Name: cmake
|
||||
Version: 3.27.9
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: Cross-platform make system
|
||||
License: BSD and MIT and zlib
|
||||
URL: http://www.cmake.org
|
||||
@ -25,6 +25,7 @@ Patch0: cmake-findruby.patch
|
||||
%ifarch sw_64
|
||||
Patch1: cmake-3.22.0-sw.patch
|
||||
%endif
|
||||
Patch2: cmake-3.27.9-fix-cxx-standard-check-issue.patch
|
||||
|
||||
BuildRequires: coreutils findutils gcc-c++ gcc-gfortran sed
|
||||
BuildRequires: emacs python3-devel pkgconfig(Qt5Widgets) desktop-file-utils
|
||||
@ -243,6 +244,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
%exclude %{_pkgdocdir}/Copyright.txt
|
||||
|
||||
%changelog
|
||||
* Fri Apr 5 2024 tiberium <jinzhe.oerv@isrc.iscas.ac.cn> 3.27.9-3
|
||||
- fix cmake compile issue due to cxx standard check failed
|
||||
|
||||
* Fri Feb 2 2024 liyanan <liyanan61@h-partners.com> - 3.27.9-2
|
||||
- Remove Windows_TemporaryKey.pfx
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user