From c8ebdb840178e3eb56c10ae9decf28f5a26cec35 Mon Sep 17 00:00:00 2001 From: Gabriel Becker Date: Thu, 22 Jun 2023 12:17:31 +0200 Subject: [PATCH] Update Fedora build to latest version. --- .github/workflows/build.yaml | 4 ++-- CMakeLists.txt | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7865a3b7..835341c2 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -24,10 +24,10 @@ jobs: popd build-fedora: - name: Build on Fedora 33 (Container) + name: Build on Fedora Latest (Container) runs-on: ubuntu-latest container: - image: fedora:33 + image: fedora:latest steps: - name: Install Deps run: dnf install -y cmake gcc-c++ openssh-clients util-linux openscap-devel qt5-qtbase-devel qt5-qtxmlpatterns-devel openssh-askpass asciidoc polkit-libs diff --git a/CMakeLists.txt b/CMakeLists.txt index 55eed972..f12ca344 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -142,6 +142,8 @@ if (WIN32) configure_file("win32-LICENSE.rtf" "${CMAKE_CURRENT_BINARY_DIR}/win32-LICENSE.rtf" COPYONLY) endif() +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17") + # Enforce std=c++11 for old gcc versions to fix build in RHEL 7 if (${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 4.9) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")