Skip to content

Commit 2706da9

Browse files
committed
build-lldb-mi: Fix building with CMake 4.0
CMake 4.0 removed compatibility with CMake versions below 3.5. Therefore, it errors out on projects with a cmake_minimum_required() less than 3.5. (Since CMake 3.31, it already warns that compatibility with versions below 3.10 is deprecated.) By passing CMAKE_POLICY_VERSION_MINIMUM=3.5, we indicate that we are ok with configuring this project with the policies of CMake 3.5, even if the project files themselves don't state it. This flag is only recognized by CMake 4.0; older versions will only warn that the manually specified variable is unused.
1 parent 28c1609 commit 2706da9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build-lldb-mi.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ cd $BUILDDIR
140140
[ -n "$NO_RECONF" ] || rm -rf CMake*
141141
cmake \
142142
${CMAKE_GENERATOR+-G} "$CMAKE_GENERATOR" \
143+
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
143144
-DCMAKE_INSTALL_PREFIX="$PREFIX" \
144145
-DCMAKE_BUILD_TYPE=Release \
145146
$CMAKEFLAGS \

0 commit comments

Comments
 (0)