aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml9
-rw-r--r--CMakeLists.txt13
2 files changed, 10 insertions, 12 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3422b5b0..172c027f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -20,7 +20,7 @@ jobs:
max-parallel: 1
matrix:
os: [ ubuntu-20.04, macos-10.15 ]
- compiler: [ GCC, Clang ]
+ compiler: [ Clang ] # GCC builds are added individually below
qt-version: [ '5.12.12' ]
# Not using binary values here, to make the job captions more readable
e2ee: [ '', e2ee ]
@@ -29,8 +29,6 @@ jobs:
platform: [ '' ]
qt-arch: [ '' ]
exclude:
- - os: macos-10.15
- compiler: GCC
- os: windows-2019
e2ee: e2ee # Not supported by the current CI script
- os: macos-10.15
@@ -41,6 +39,11 @@ jobs:
qt-version: '5.12.12'
e2ee: e2ee
sonar: sonar
+ - os: ubuntu-20.04
+ compiler: GCC
+ qt-version: '5.12.12'
+ e2ee: e2ee
+ update-api: update-api
- os: windows-2019
compiler: MSVC
platform: x64
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6f9ca9d2..efdd5bb6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,4 @@
-# Officially CMake 3.16+ is needed but LGTM.com still sits on eoan that only
-# has CMake 3.13
-cmake_minimum_required(VERSION 3.13)
+cmake_minimum_required(VERSION 3.16)
if (POLICY CMP0092)
cmake_policy(SET CMP0092 NEW)
endif()
@@ -295,13 +293,10 @@ set_target_properties(${PROJECT_NAME} PROPERTIES
set_property(TARGET ${PROJECT_NAME} APPEND PROPERTY
COMPATIBLE_INTERFACE_STRING ${PROJECT_NAME}_MAJOR_VERSION)
-# C++17 required, C++20 desired (see above)
-target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_17)
+target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_20)
-# TODO: Bump the CMake requirement and drop the version check here once
-# LGTM upgrades
-if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.16.0"
- AND NOT CMAKE_CXX_COMPILER_ID STREQUAL GNU) # https://bugzilla.redhat.com/show_bug.cgi?id=1721553
+# Don't use PCH w/GCC (https://bugzilla.redhat.com/show_bug.cgi?id=1721553#c34)
+if (NOT CMAKE_CXX_COMPILER_ID STREQUAL GNU)
target_precompile_headers(${PROJECT_NAME} PRIVATE lib/converters.h)
endif ()