Skip to content

Commit 42f05cf

Browse files
committed
meson: Fix compatibility error with CMake >=4.0
Fixes #371.
1 parent ed7b036 commit 42f05cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ else
146146
opt_var = cmake.subproject_options()
147147
opt_var.set_override_option('cpp_std', 'c++20')
148148
opt_var.add_cmake_defines({
149+
'CMAKE_POLICY_VERSION_MINIMUM': '3.31',
150+
149151
'wxBUILD_INSTALL': false,
150152
'wxBUILD_PRECOMP': 'OFF', # otherwise breaks project generation w/ meson
151153
'wxBUILD_SHARED': build_shared,

0 commit comments

Comments
 (0)