From 04b74e1314f795c0b5c671c2cfa25a71dd4ab446 Mon Sep 17 00:00:00 2001 From: throwaway96 <68320646+throwaway96@users.noreply.github.com> Date: Sat, 2 Sep 2023 18:48:26 -0400 Subject: [PATCH] CMake: standardize minimum version of 3.10 This prevents a deprecation warning. Also make formatting consistent. --- CMakeLists.txt | 2 +- cmake/msbuild2cmake.cmake | 2 +- src/Native/CMakeLists.txt | 2 +- src/Native/reko.cmake | 2 +- src/reko.cmake | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ffa9de08c..babb10e04d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required ( VERSION 3.10 FATAL_ERROR ) +cmake_minimum_required(VERSION 3.10 FATAL_ERROR) list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_SOURCE_DIR}/cmake") find_package(Dotnet 2.0 REQUIRED) diff --git a/cmake/msbuild2cmake.cmake b/cmake/msbuild2cmake.cmake index 3c2c3c7f2a..0d29211ee2 100644 --- a/cmake/msbuild2cmake.cmake +++ b/cmake/msbuild2cmake.cmake @@ -18,7 +18,7 @@ # `TARGET`, which is the name of the target (defined in CMakeLists.txt) to build # -cmake_minimum_required ( VERSION 3.10 FATAL_ERROR ) +cmake_minimum_required(VERSION 3.10 FATAL_ERROR) function(check_msys output) execute_process( diff --git a/src/Native/CMakeLists.txt b/src/Native/CMakeLists.txt index 75c466cc16..a740b3b5b7 100644 --- a/src/Native/CMakeLists.txt +++ b/src/Native/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0 FATAL_ERROR) +cmake_minimum_required(VERSION 3.10 FATAL_ERROR) project(reko-native) diff --git a/src/Native/reko.cmake b/src/Native/reko.cmake index c969564408..98346b24f8 100644 --- a/src/Native/reko.cmake +++ b/src/Native/reko.cmake @@ -1,4 +1,4 @@ -cmake_minimum_required ( VERSION 3.10 FATAL_ERROR ) +cmake_minimum_required(VERSION 3.10 FATAL_ERROR) list(INSERT CMAKE_MODULE_PATH 0 "${REKO_SRC}/../cmake") include(msbuild2cmake) diff --git a/src/reko.cmake b/src/reko.cmake index 131ea58289..e0008de3e2 100644 --- a/src/reko.cmake +++ b/src/reko.cmake @@ -1,4 +1,4 @@ -cmake_minimum_required ( VERSION 3.10 FATAL_ERROR ) +cmake_minimum_required(VERSION 3.10 FATAL_ERROR) list(INSERT CMAKE_MODULE_PATH 0 "${REKO_SRC}/../cmake") include(msbuild2cmake)