Skip to content

Commit 8eb7770

Browse files
authored
Fix Matlab documentation build with CMake 4.0 (#2676)
Closes #2675.
1 parent 090e022 commit 8eb7770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/downloadAndBuildMtocpp.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if [ ! -d "mtocpp-master" ]; then
4343

4444
if command -v cmake &> /dev/null; then
4545
echo "Building mtocpp using CMake..."
46-
cd mtocpp-master/build && cmake .. && make mtocpp mtocpp_post
46+
cd mtocpp-master/build && cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 .. && make mtocpp mtocpp_post
4747
if [ $? -ne 0 ] ; then
4848
exit 1
4949
fi

0 commit comments

Comments
 (0)