Skip to content

Commit

Permalink
require CMake 3.13+ (CMP0079) and fix catch2 download url
Browse files Browse the repository at this point in the history
  • Loading branch information
svenevs committed Oct 3, 2021
1 parent b393f22 commit 2003e09
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions testing/projects/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# safety as your eyes may bleed, or you may spontaneously combust. #
# #
########################################################################################
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(exhale-projects)

# Forcibly setting this to make CI easier.
Expand All @@ -35,7 +35,7 @@ set(CMAKE_BUILD_TYPE "Debug") # required for code coverage
# Download the test suite utilities (Catch2 <3)
file(
DOWNLOAD
https://raw.githubusercontent.com/catchorg/Catch2/master/single_include/catch2/catch.hpp
https://raw.githubusercontent.com/catchorg/Catch2/v2.x/single_include/catch2/catch.hpp
${CMAKE_CURRENT_BINARY_DIR}/include/catch2/catch.hpp
)

Expand Down
2 changes: 1 addition & 1 deletion testing/projects/c_maths/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# License: CC0 1.0 Universal #
# License Text: https://creativecommons.org/publicdomain/zero/1.0/legalcode #
########################################################################################
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(c-maths LANGUAGES C)

# Add the c-maths library
Expand Down
2 changes: 1 addition & 1 deletion testing/projects/cpp with spaces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# License: CC0 1.0 Universal #
# License Text: https://creativecommons.org/publicdomain/zero/1.0/legalcode #
########################################################################################
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(cpp-with-spaces LANGUAGES CXX)

# Add the cpp-with-spaces library
Expand Down
2 changes: 1 addition & 1 deletion testing/projects/cpp_fortran_mixed/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# License: CC0 1.0 Universal #
# License Text: https://creativecommons.org/publicdomain/zero/1.0/legalcode #
########################################################################################
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(cpp-fortran-mixed LANGUAGES C CXX Fortran)

if (WIN32 OR MSVC)
Expand Down
2 changes: 1 addition & 1 deletion testing/projects/cpp_func_overloads/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# License: CC0 1.0 Universal #
# License Text: https://creativecommons.org/publicdomain/zero/1.0/legalcode #
########################################################################################
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(cpp-func-overloads LANGUAGES CXX)

# "Header only library": add tests and include the directory
Expand Down
2 changes: 1 addition & 1 deletion testing/projects/cpp_long_names/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# License: CC0 1.0 Universal #
# License Text: https://creativecommons.org/publicdomain/zero/1.0/legalcode #
########################################################################################
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(cpp-long-names LANGUAGES CXX)

# Windows cannot handle the full test case because of its antiquated filesystem.
Expand Down
2 changes: 1 addition & 1 deletion testing/projects/cpp_nesting/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# License: CC0 1.0 Universal #
# License Text: https://creativecommons.org/publicdomain/zero/1.0/legalcode #
########################################################################################
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(cpp-nesting LANGUAGES CXX)

# "Header only library": add tests and include the directory
Expand Down
2 changes: 1 addition & 1 deletion testing/projects/cpp_pimpl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# License: CC0 1.0 Universal #
# License Text: https://creativecommons.org/publicdomain/zero/1.0/legalcode #
########################################################################################
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(cpp-pimpl LANGUAGES CXX)

# Add the cpp-pimpl library
Expand Down

0 comments on commit 2003e09

Please sign in to comment.