mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
Add description & URL to Cmake (#1785)
Doesn't do much, but some packages/builders might find a use for these vars it provides...
This commit is contained in:
parent
b4d26badf2
commit
d1a1c8a158
1 changed files with 6 additions and 1 deletions
|
@ -72,7 +72,12 @@ file(STRINGS httplib.h _raw_version_string REGEX "CPPHTTPLIB_VERSION \"([0-9]+\\
|
||||||
# since _raw_version_string would contain the entire line of code where it found the version string
|
# since _raw_version_string would contain the entire line of code where it found the version string
|
||||||
string(REGEX MATCH "([0-9]+\\.?)+" _httplib_version "${_raw_version_string}")
|
string(REGEX MATCH "([0-9]+\\.?)+" _httplib_version "${_raw_version_string}")
|
||||||
|
|
||||||
project(httplib VERSION ${_httplib_version} LANGUAGES CXX)
|
project(httplib
|
||||||
|
VERSION ${_httplib_version}
|
||||||
|
LANGUAGES CXX
|
||||||
|
DESCRIPTION "A C++ header-only HTTP/HTTPS server and client library."
|
||||||
|
HOMEPAGE_URL "https://github.com/yhirose/cpp-httplib"
|
||||||
|
)
|
||||||
|
|
||||||
# Change as needed to set an OpenSSL minimum version.
|
# Change as needed to set an OpenSSL minimum version.
|
||||||
# This is used in the installed Cmake config file.
|
# This is used in the installed Cmake config file.
|
||||||
|
|
Loading…
Reference in a new issue