fix: names need to match to share fetches
This commit is contained in:
parent
571a244dbd
commit
8fb3c4fcbb
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user