--- CMakeLists.txt.orig	2022-11-09 06:37:21
+++ CMakeLists.txt	2026-06-22 15:10:29
@@ -1,8 +1,10 @@
 # SPDX-FileCopyrightText: 2022 James R. Barlow
 # SPDX-License-Identifier: MPL-2.0
 
-cmake_minimum_required(VERSION 3.15...3.30)
+cmake_minimum_required(VERSION 3.28)
 project(pikepdf LANGUAGES CXX)
+set(CMAKE_CXX_STANDARD 20)
+set(CMAKE_CXX_SCAN_FOR_MODULES OFF)
 
 find_package(Python 3.10
     REQUIRED COMPONENTS Interpreter Development.Module
