From 93bf2210ff08ad6beb9fa209f76032621dc13cb5 Mon Sep 17 00:00:00 2001 From: ClausKlein Date: Fri, 31 Jul 2026 12:33:58 +0200 Subject: [PATCH 1/2] Add missing exports to GNUmakefile --- GNUmakefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 623724d4..9bde6afa 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -41,6 +41,15 @@ compile_commands.json: $(_build_path)/compile_commands.json CMakeUserPresets.json:: cmake/CMakeUserPresets.json -ln -fs $< $@ +find_package_test: # XXX install ## Test with installed cmake config package + cmake -S examples -B build/find_package_test -G Ninja \ + -D CMAKE_CXX_STANDARD=26 \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_SKIP_TEST_ALL_DEPENDENCY=OFF \ + --debug-find-pkg=beman.execution + ninja -C build/find_package_test test + ninja -C build/find_package_test ninja -t deps | egrep -w '(cmake_cxx_std|beman)' + distclean: ## Remove all build artifacts rm -rf build .cache rm -f CMakeUserPresets.json \ @@ -49,8 +58,9 @@ distclean: ## Remove all build artifacts find . -name '*~' -delete format: distclean ## Format all files with pre-commit - -pre-commit autoupdate - pre-commit run --all + git ls-files ':(top,exclude)infra/cmake/' ::cmake.in ::*.cmake ::*CMakeLists.txt | xargs gersemi -i + # -pre-commit autoupdate --freeze + # pre-commit run --all dockerbuild: ## Start docker image interactive docker run -it -v $(CURDIR):/src $(IMAGE) From a2f6db4200e6ff9033f5c1b0dc5505395f418d2c Mon Sep 17 00:00:00 2001 From: ClausKlein Date: Fri, 27 Nov 2026 22:15:55 +0100 Subject: [PATCH 2/2] Add missing modules examples Bump cmake policy range to ...4.5 for examples too --- GNUmakefile | 1 + cmake/CMakeUserPresets.json | 1 - examples/CMakeLists.txt | 5 ++--- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 9bde6afa..2c5070f3 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -49,6 +49,7 @@ find_package_test: # XXX install ## Test with installed cmake config package --debug-find-pkg=beman.execution ninja -C build/find_package_test test ninja -C build/find_package_test ninja -t deps | egrep -w '(cmake_cxx_std|beman)' + ninja -C build/find_package_test -t commands beman_execution.example.modules | tail -1 distclean: ## Remove all build artifacts rm -rf build .cache diff --git a/cmake/CMakeUserPresets.json b/cmake/CMakeUserPresets.json index 331c063e..f1d5dfa0 100644 --- a/cmake/CMakeUserPresets.json +++ b/cmake/CMakeUserPresets.json @@ -22,7 +22,6 @@ "configurePreset": "release", "configuration": "Release", "targets": [ - "all_verify_interface_header_sets", "all" ] } diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 97d2875f..4d7f1d7b 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # gersemi: on -cmake_minimum_required(VERSION 3.30...4.4) +cmake_minimum_required(VERSION 3.30...4.5) include(../cmake/prelude.cmake) @@ -38,8 +38,7 @@ set(EXAMPLES ) if(BEMAN_USE_MODULES) - #-dk:TODO gcc doesn't like the modules: list(APPEND EXAMPLES modules modules_and_header) - list(APPEND EXAMPLES modules_and_header) + list(APPEND EXAMPLES modules modules_and_header) endif() if(BEMAN_EXECUTION_WITH_DEFAULT_PARALLEL_SCHEDULER_BACKEND)