test: avoid need for explict CMake minimum

This mitigates maintenance burden as CMake minimum version isn't
relevant for these tests. CMake >= 3.31 warns if CMake minimum version
is less than 3.10.

ref: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9875
pull/13779/merge
scivision 1 month ago committed by Eli Schwartz
parent 739683943a
commit 2291b3f27f
  1. 4
      test cases/cmake/1 basic/subprojects/cmMod/CMakeLists.txt
  2. 2
      test cases/cmake/10 header only/subprojects/cmMod/CMakeLists.txt
  3. 2
      test cases/cmake/11 cmake_module_path/subprojects/cmMod/CMakeLists.txt
  4. 2
      test cases/cmake/12 generator expressions/subprojects/cmMod/CMakeLists.txt
  5. 2
      test cases/cmake/13 system includes/subprojects/cmMod/CMakeLists.txt
  6. 2
      test cases/cmake/16 threads/subprojects/cmMod/CMakeLists.txt
  7. 2
      test cases/cmake/17 include path order/subprojects/cmMod/CMakeLists.txt
  8. 2
      test cases/cmake/18 skip include files/subprojects/cmMod/CMakeLists.txt
  9. 2
      test cases/cmake/2 advanced/subprojects/cmMod/CMakeLists.txt
  10. 2
      test cases/cmake/21 shared module/subprojects/cmMod/CMakeLists.txt
  11. 2
      test cases/cmake/23 cmake toolchain/subprojects/cmMod/CMakeLists.txt
  12. 2
      test cases/cmake/23 cmake toolchain/subprojects/cmModFortran/CMakeLists.txt
  13. 2
      test cases/cmake/24 mixing languages/subprojects/cmTest/CMakeLists.txt
  14. 2
      test cases/cmake/25 assembler/subprojects/cmTest/CMakeLists.txt
  15. 4
      test cases/cmake/27 dependency fallback/subprojects/cmMod/CMakeLists.txt
  16. 2
      test cases/cmake/27 dependency fallback/subprojects/cmake_subp/CMakeLists.txt
  17. 2
      test cases/cmake/27 dependency fallback/subprojects/force_cmake/CMakeLists.txt
  18. 2
      test cases/cmake/3 advanced no dep/subprojects/cmMod/CMakeLists.txt
  19. 2
      test cases/cmake/8 custom command/subprojects/cmMod/CMakeLists.txt
  20. 2
      test cases/failing build/3 cmake subproject isolation/subprojects/cmMod/CMakeLists.txt
  21. 2
      test cases/failing/109 cmake executable dependency/subprojects/cmlib/CMakeLists.txt
  22. 2
      test cases/failing/119 cmake subproject error/subprojects/cmlib/CMakeLists.txt
  23. 2
      test cases/unit/1 soname/CMakeLists.txt

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmMod)
set (CMAKE_CXX_STANDARD 14)
@ -12,7 +12,7 @@ target_compile_definitions(cmModLib++ PRIVATE MESON_MAGIC_FLAG=21)
target_compile_definitions(cmModLib++ INTERFACE MESON_MAGIC_FLAG=42)
# Test PCH support
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.16.0")
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.16.0")
target_precompile_headers(cmModLib++ PRIVATE "cpp_pch.hpp")
endif()

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmMod)
set (CMAKE_CXX_STANDARD 14)

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmMod)

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmMod)
set (CMAKE_CXX_STANDARD 14)

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmMod)
set (CMAKE_CXX_STANDARD 14)

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmMod C CXX)
set (CMAKE_CXX_STANDARD 14)

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmMod)
set (CMAKE_CXX_STANDARD 14)

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmMod)
set (CMAKE_CXX_STANDARD 14)

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmMod)
set(CMAKE_CXX_STANDARD 14)

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmModule)

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmMod NONE)

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)
project(cmMod NONE)

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmTest LANGUAGES C OBJC)

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmTest)

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmMod VERSION 1.2.3)
set(CMAKE_CXX_STANDARD 14)
@ -12,7 +12,7 @@ target_compile_definitions(cmModLib++ PRIVATE MESON_MAGIC_FLAG=21)
target_compile_definitions(cmModLib++ INTERFACE MESON_MAGIC_FLAG=42)
# Test PCH support
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.16.0")
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.16.0")
target_precompile_headers(cmModLib++ PRIVATE "cpp_pch.hpp")
endif()

@ -1,2 +1,2 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmModDummy)

@ -1,2 +1,2 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmModBoth)

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmMod)
set(CMAKE_CXX_STANDARD 14)

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmMod)
set (CMAKE_CXX_STANDARD 14)

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmMod)
set (CMAKE_CXX_STANDARD 14)

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmlib)

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(cmlib)

@ -7,7 +7,7 @@
# soname to 1.2.3 but Autotools sets it to 1.
project(vertest C)
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION ${CMAKE_VERSION})
add_library(nover SHARED versioned.c)

Loading…
Cancel
Save