Skip to content

Commit 177fbfe

Browse files
authored
RCBC-515: enforce CMAKE_POLICY_VERSION_MINIMUM to be 3.5 for snappy and cmake 4.x (#172)
1 parent 11c7688 commit 177fbfe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ext/extconf.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ def sys(*cmd)
9393
"-DCOUCHBASE_CXX_CLIENT_INSTALL=OFF",
9494
]
9595

96+
if version.start_with?("4")
97+
# snappy requires CMake 3.1
98+
cmake_flags << "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
99+
end
100+
101+
96102
extconf_include = File.expand_path("cache/extconf_include.rb", __dir__)
97103
if File.exist?(extconf_include)
98104
puts "-- include extra cmake options from #{extconf_include}"

0 commit comments

Comments
 (0)