Skip to content

Commit 6da52eb

Browse files
Fix CMake 4.0.0 build break
1 parent 5f92446 commit 6da52eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
from distutils.command.build import build as _build
4343

4444
cmake_opts = [("PYTHON_BIN", sys.executable),
45-
("CMAKE_INSTALL_RPATH_USE_LINK_PATH", "yes")]
45+
("CMAKE_INSTALL_RPATH_USE_LINK_PATH", "yes"),
46+
("CMAKE_POLICY_VERSION_MINIMUM", "3.5")]
4647
cmake_generator = [None]
4748
cmake_build_type = ["Release"]
4849

0 commit comments

Comments
 (0)