From 8231b1f6d0f6da7235f90ac12f0f1e974ae1b050 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Thu, 8 Aug 2024 13:39:08 -0400 Subject: [PATCH] test: bump cmake_minimum_required to 3.16 To address: CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. Bump to a later version available in relatively recent Linux distributions. --- test/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/run.py b/test/run.py index fb61fc7..9959b37 100755 --- a/test/run.py +++ b/test/run.py @@ -44,7 +44,7 @@ def test_cmake_build_system(build_dir, language, source, emulator, linker_flags, print('Building ' + source + ' with CMake...') with open('CMakeLists.txt', 'w') as fp: - fp.write('cmake_minimum_required(VERSION 3.0)\n') + fp.write('cmake_minimum_required(VERSION 3.16)\n') fp.write('project(test-compiler)\n') fp.write('add_executable(a.out ' + os.path.basename(source) + ')\n') if emulator: