From 2cd69db5aaaf24891e867b377048f14df49668ab Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 30 Mar 2026 12:31:09 +0200 Subject: still using this as a cmake-common test project --- .github/workflows/ci.yml | 3 +-- Makefile | 11 +++++++++-- cmake | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7111255..599bf6c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,6 @@ on: env: BOOST_VERSION: 1.81.0 - CMAKE_FLAGS: -D WINAPI_UTF8_TESTS=ON jobs: lint: @@ -83,7 +82,7 @@ jobs: if: github.ref == 'refs/heads/master' env: TOOLSET: mingw - CMAKE_FLAGS: -D WINAPI_UTF8_TESTS=OFF + SKIP_TESTS: yes steps: # This is rather stupid. In order to build Doxygen docs, I need a working # CMake build directory, so I assume that means I need to pretty much diff --git a/Makefile b/Makefile index 21dcc6c..68bc7ab 100644 --- a/Makefile +++ b/Makefile @@ -11,8 +11,9 @@ TOOLSET ?= mingw PLATFORM ?= auto CONFIGURATION ?= Debug BOOST_VERSION ?= 1.81.0 -BOOST_LIBRARIES := --with-test +BOOST_LIBRARIES := test INSTALL_PREFIX ?= $(install_dir) +SKIP_TESTS ?= $(eval $(call noexpand,TOOLSET)) $(eval $(call noexpand,PLATFORM)) @@ -45,6 +46,12 @@ deps: $(boost_dir)/ '$(call escape,$(boost_dir))' \ $(BOOST_LIBRARIES) +ifneq ($(SKIP_TESTS),) +tests_args := --cmake-arg=-DWINAPI_UTF8_TESTS=OFF +else +tests_args := --cmake-arg=-DWINAPI_UTF8_TESTS=ON +endif + .PHONY: build build: cd cmake && python3 -m project.build \ @@ -53,7 +60,7 @@ build: --configuration '$(call escape,$(CONFIGURATION))' \ --install '$(call escape,$(INSTALL_PREFIX))' \ --boost '$(call escape,$(boost_dir))' \ - --cmake-arg=-DWINAPI_UTF8_TESTS=ON \ + $(tests_args) \ -- \ '$(call escape,$(src_dir))' \ '$(call escape,$(cmake_dir))' \ diff --git a/cmake b/cmake index b632496..71ca79a 160000 --- a/cmake +++ b/cmake @@ -1 +1 @@ -Subproject commit b632496eb6769c5626e95e3df8a4ff45259474db +Subproject commit 71ca79a6e8293254bb626a29a353b4c09f763b26 -- cgit v1.3