-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: switch datetime package to an external dependency (#83)
By switching to an external dependency controlled by a central file we can more cleanly reference date::date and date::tz. We could do the same by "externally loading" a submodule but either way we end up downloading the datetime repo.
- Loading branch information
1 parent
362552d
commit cf6052b
Showing
5 changed files
with
16 additions
and
3 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
include_guard(GLOBAL) | ||
|
||
set (BUILD_TZ_LIB ON CACHE BOOL "timezone library is a dependency" FORCE) | ||
include(FetchContent) | ||
FetchContent_Declare(date_src | ||
GIT_REPOSITORY https://github.com/HowardHinnant/date.git | ||
GIT_TAG v3.0.1 | ||
) | ||
FetchContent_MakeAvailable(date_src) |