1
0
mirror of synced 2024-12-22 12:40:00 +01:00

fix: names need to match to share fetches

This commit is contained in:
Henry Schreiner 2020-08-05 16:17:00 -04:00
parent 571a244dbd
commit 8fb3c4fcbb
2 changed files with 5 additions and 3 deletions

View File

@ -14,7 +14,7 @@ For example, to download Catch2:
FetchContent_Declare(
catch
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v2.9.1
GIT_TAG v2.13.0
)
# CMake 3.14+
@ -48,4 +48,6 @@ endif()
Now you have the CMake 3.14+ syntax in CMake 3.11+.
See the example [here](https://gitlab.com/CLIUtils/modern-cmake/-/tree/master/examples/fetch).
[FetchContent]: https://cmake.org/cmake/help/latest/module/FetchContent.html

View File

@ -1,9 +1,9 @@
# Testing library
FetchContent_Declare(
catch2
catch
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v2.9.1)
FetchContent_MakeAvailable(catch2)
FetchContent_MakeAvailable(catch)
# Adds Catch2::Catch2
# Tests need to be added as executables first