-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
------------------------ Note: by creating a PR or an issue you automatically agree to the CLA. See [CONTRIBUTING.md](https://github.com/userver-framework/userver/blob/develop/CONTRIBUTING.md). Feel free to remove this note, the agreement holds. Tests: протестировано CI Pull Request resolved: #832 Co-authored-by: fdr400 <[email protected]> commit_hash:873a68f1602d75dbca25964f23ca62411ceed2c4
- Loading branch information
Showing
15 changed files
with
70 additions
and
8 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
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,30 @@ | ||
option(USERVER_DOWNLOAD_PACKAGE_RE2 "Download and setup Re2 if no Re2 matching version was found" ${USERVER_DOWNLOAD_PACKAGES}) | ||
option(USERVER_FORCE_DOWNLOAD_RE2 "Download Re2 even if it exists in a system" ${USERVER_FORCE_DOWNLOAD_PACKAGES}) | ||
|
||
if(NOT USERVER_FORCE_DOWNLOAD_RE2) | ||
if(USERVER_DOWNLOAD_PACKAGE_RE2) | ||
find_package(re2 QUIET) | ||
else() | ||
find_package(re2 REQUIRED) | ||
endif() | ||
|
||
if(re2_FOUND) | ||
return() | ||
endif() | ||
endif() | ||
|
||
include(DownloadUsingCPM) | ||
|
||
CPMAddPackage( | ||
NAME re2 | ||
VERSION 2023-03-01 # newest version without abseil requirements | ||
GIT_TAG 2023-03-01 | ||
GITHUB_REPOSITORY google/re2 | ||
SYSTEM | ||
OPTIONS | ||
"RE2_BUILD_TESTING OFF" | ||
"RE2_USE_ICU ON" | ||
) | ||
|
||
mark_targets_as_system("${re2_SOURCE_DIR}") | ||
write_package_stub(re2) |
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
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 |
---|---|---|
|
@@ -25,7 +25,6 @@ openldap | |
openssl | ||
postgresql@16 | ||
pugixml | ||
re2 | ||
rocksdb | ||
yaml-cpp | ||
zlib |
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