From 77720ab2251ffe5f79b11190de3cb0143f74e65a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 17 Feb 2026 11:05:25 +0100 Subject: try out the pre-release cmake-common version --- CMakeLists.txt | 4 +--- Makefile | 3 +-- cmake | 2 +- test/CMakeLists.txt | 4 ++-- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 226adb2..96a975d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,11 +1,9 @@ # For CONFIGURE_DEPENDS -cmake_minimum_required(VERSION 3.12) +cmake_minimum_required(VERSION 3.30) project(winapi_utf8 CXX) enable_testing() -include(cmake/common.cmake) - file(GLOB_RECURSE winapi_utf8_include CONFIGURE_DEPENDS "include/*.hpp") file(GLOB winapi_utf8_src CONFIGURE_DEPENDS "src/*.cpp") add_library(winapi_utf8 ${winapi_utf8_include} ${winapi_utf8_src}) diff --git a/Makefile b/Makefile index 4877274..21dcc6c 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,6 @@ PLATFORM ?= auto CONFIGURATION ?= Debug BOOST_VERSION ?= 1.81.0 BOOST_LIBRARIES := --with-test -CMAKE_FLAGS ?= -D WINAPI_UTF8_TESTS=ON INSTALL_PREFIX ?= $(install_dir) $(eval $(call noexpand,TOOLSET)) @@ -54,10 +53,10 @@ build: --configuration '$(call escape,$(CONFIGURATION))' \ --install '$(call escape,$(INSTALL_PREFIX))' \ --boost '$(call escape,$(boost_dir))' \ + --cmake-arg=-DWINAPI_UTF8_TESTS=ON \ -- \ '$(call escape,$(src_dir))' \ '$(call escape,$(cmake_dir))' \ - $(CMAKE_FLAGS) .PHONY: install install: build diff --git a/cmake b/cmake index 9e7304a..b632496 160000 --- a/cmake +++ b/cmake @@ -1 +1 @@ -Subproject commit 9e7304af2fe5a4f89da64ac76768697aac4f858e +Subproject commit b632496eb6769c5626e95e3df8a4ff45259474db diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index bf023a6..fac2824 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,4 +1,4 @@ -find_package(Boost REQUIRED COMPONENTS unit_test_framework) +find_package(Boost CONFIG REQUIRED COMPONENTS unit_test_framework) file(GLOB unit_tests_src "*.cpp") add_executable(unit_tests ${unit_tests_src}) @@ -6,7 +6,7 @@ set_target_properties(unit_tests PROPERTIES OUTPUT_NAME winapi-utf8-unit-tests) target_link_libraries(unit_tests PRIVATE winapi_utf8) target_link_libraries(unit_tests PRIVATE Boost::disable_autolinking Boost::unit_test_framework) install(TARGETS unit_tests RUNTIME DESTINATION bin) -install_pdbs(TARGETS unit_tests DESTINATION bin) +#install_pdbs(TARGETS unit_tests DESTINATION bin) add_test(NAME unit_tests COMMAND unit_tests) set_tests_properties(unit_tests PROPERTIES -- cgit v1.3