-
-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1158 from FireDaemon/1.8.2-to-master
1.8.2
- Loading branch information
Showing
121 changed files
with
4,545 additions
and
3,717 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,28 @@ | ||
include(FetchContent) | ||
|
||
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING) | ||
FetchContent_Declare( | ||
Catch2 | ||
GIT_REPOSITORY https://github.com/catchorg/Catch2.git | ||
GIT_TAG v3.2.1 | ||
) | ||
add_subdirectory(catch2) | ||
# FIND_PACKAGE_ARGS is available since 3.24 | ||
if(CMAKE_VERSION VERSION_LESS 3.24) | ||
FetchContent_Declare( | ||
Catch2 | ||
GIT_REPOSITORY https://github.com/catchorg/Catch2.git | ||
GIT_TAG v3.2.1 | ||
) | ||
else() | ||
FetchContent_Declare( | ||
Catch2 | ||
GIT_REPOSITORY https://github.com/catchorg/Catch2.git | ||
GIT_TAG v3.2.1 | ||
# prefer find_package() over building from source | ||
FIND_PACKAGE_ARGS 3 CONFIG | ||
) | ||
endif() | ||
endif() | ||
|
||
add_subdirectory(sqlite3) | ||
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING) | ||
# CMake <3.24: exposes targets only locally, but caches them. So call FetchContent_MakeAvailable again in the directory of usage | ||
FetchContent_MakeAvailable(Catch2) | ||
endif() | ||
|
||
# CMake <3.24: exposes targets only locally, but caches them. So call find_package again in the directory of usage | ||
find_package(SQLite3 REQUIRED) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.