Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ 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)'
ninja -C build/find_package_test -t commands beman_execution.example.modules | tail -1

distclean: ## Remove all build artifacts
rm -rf build .cache
rm -f CMakeUserPresets.json \
Expand All @@ -49,8 +59,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)
Expand Down
1 change: 0 additions & 1 deletion cmake/CMakeUserPresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"configurePreset": "release",
"configuration": "Release",
"targets": [
"all_verify_interface_header_sets",
"all"
]
}
Expand Down
5 changes: 2 additions & 3 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)
Expand Down