From 9158a28a7656103e67323e9eb3eaae473547b469 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Tue, 12 May 2026 17:17:10 +0800 Subject: [PATCH] cmake: migrate to parameter 0.9 --- CMakeLists.txt | 2 +- include/nova/sync/mutex/pthread_mutex.hpp | 2 +- include/nova/sync/mutex/win32_critical_section_mutex.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 72acf5c..70f68b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,7 +58,7 @@ if (NOT TARGET nova::parameter) CPMAddPackage( NAME nova_parameter GITHUB_REPOSITORY timblechmann/nova_parameter - GIT_TAG 2a27452a75aec950baf6967e88b28dfe09ab1bf9 + VERSION 0.9 ) endif() diff --git a/include/nova/sync/mutex/pthread_mutex.hpp b/include/nova/sync/mutex/pthread_mutex.hpp index 5d55fa7..535230c 100644 --- a/include/nova/sync/mutex/pthread_mutex.hpp +++ b/include/nova/sync/mutex/pthread_mutex.hpp @@ -80,7 +80,7 @@ inline constexpr bool has_priority_ceiling_v = parameter::has_parameter_v< tags: template < typename... Policies > inline constexpr int extract_priority_ceiling_v - = parameter::extract_integral_v< tags::priority_ceiling_tag, int, 0, Policies... >; + = parameter::extract_integral_or_v< tags::priority_ceiling_tag, int, 0, Policies... >; template < typename... Policies > inline constexpr bool has_pthread_errorcheck_v = parameter::has_parameter_v< tags::pthread_errorcheck_tag, Policies... >; diff --git a/include/nova/sync/mutex/win32_critical_section_mutex.hpp b/include/nova/sync/mutex/win32_critical_section_mutex.hpp index 5b01bd3..3ae5fe4 100644 --- a/include/nova/sync/mutex/win32_critical_section_mutex.hpp +++ b/include/nova/sync/mutex/win32_critical_section_mutex.hpp @@ -41,7 +41,7 @@ using win32_cs_allowed_tags = std::tuple< tags::win32_spin_count_tag >; template < typename... Policies > inline constexpr unsigned extract_win32_spin_count_v - = parameter::extract_integral_v< tags::win32_spin_count_tag, unsigned, 4000u, Policies... >; + = parameter::extract_integral_or_v< tags::win32_spin_count_tag, unsigned, 4000u, Policies... >; } // namespace win32_policy template < typename... Policies >