File fix-c++17.patch of Package deepin-system-monitor

diff -Nurp deepin-system-monitor-6.0.20/deepin-system-monitor-main/CMakeLists.txt deepin-system-monitor-6.0.20-new/deepin-system-monitor-main/CMakeLists.txt
--- deepin-system-monitor-6.0.20/deepin-system-monitor-main/CMakeLists.txt	2024-05-11 13:09:13.000000000 +0800
+++ deepin-system-monitor-6.0.20-new/deepin-system-monitor-main/CMakeLists.txt	2024-05-30 21:27:00.364701662 +0800
@@ -13,7 +13,7 @@ set(APP_RESOURCES ${APP_RES_ROOT}/${PROJ
 set(DESKTOP_FILE ${PROJECT_NAME}.desktop)
 set(POLICY_FILE com.deepin.pkexec.${PROJECT_NAME}.policy)
 
-set(CMAKE_CXX_STANDARD 11)
+set(CMAKE_CXX_STANDARD 17)
 set(CMAKE_CXX_STANDARD_REQUIRED True)
 
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wl,--as-need -fPIE")
diff -Nurp deepin-system-monitor-6.0.20/deepin-system-monitor-plugin-popup/CMakeLists.txt deepin-system-monitor-6.0.20-new/deepin-system-monitor-plugin-popup/CMakeLists.txt
--- deepin-system-monitor-6.0.20/deepin-system-monitor-plugin-popup/CMakeLists.txt	2024-05-11 13:09:13.000000000 +0800
+++ deepin-system-monitor-6.0.20-new/deepin-system-monitor-plugin-popup/CMakeLists.txt	2024-05-30 21:30:39.354634380 +0800
@@ -9,7 +9,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
 set(APP_RES_ROOT asserts)
 set(APP_RESOURCES ${APP_RES_ROOT}/${PROJECT_NAME}.qrc)
 
-set(CMAKE_CXX_STANDARD 11)
+set(CMAKE_CXX_STANDARD 17)
 set(CMAKE_CXX_STANDARD_REQUIRED True)
 
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall ")
diff -Nurp deepin-system-monitor-6.0.20/deepin-system-monitor-server/CMakeLists.txt deepin-system-monitor-6.0.20-new/deepin-system-monitor-server/CMakeLists.txt
--- deepin-system-monitor-6.0.20/deepin-system-monitor-server/CMakeLists.txt	2024-05-11 13:09:13.000000000 +0800
+++ deepin-system-monitor-6.0.20-new/deepin-system-monitor-server/CMakeLists.txt	2024-05-30 21:30:53.121217389 +0800
@@ -6,7 +6,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 set(CMAKE_AUTOMOC ON)
 
-set(CMAKE_CXX_STANDARD 11)
+set(CMAKE_CXX_STANDARD 17)
 set(CMAKE_CXX_STANDARD_REQUIRED ON)
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-strong -D_FORTITY_SOURCE=1 -z noexecstack -pie -fPIC -z lazy")
 
diff -Nurp deepin-system-monitor-6.0.20/tests/CMakeLists.txt deepin-system-monitor-6.0.20-new/tests/CMakeLists.txt
--- deepin-system-monitor-6.0.20/tests/CMakeLists.txt	2024-05-11 13:09:13.000000000 +0800
+++ deepin-system-monitor-6.0.20-new/tests/CMakeLists.txt	2024-05-30 21:31:07.364464171 +0800
@@ -25,7 +25,7 @@ set(APP_RESOURCES ../deepin-system-monit
 set(DESKTOP_FILE ${PROJECT_NAME}.desktop)
 set(POLICY_FILE com.deepin.pkexec.${PROJECT_NAME}.policy)
 
-set(CMAKE_CXX_STANDARD 11)
+set(CMAKE_CXX_STANDARD 17)
 set(CMAKE_CXX_STANDARD_REQUIRED True)
 
 
openSUSE Build Service is sponsored by