Commit Graph

30 Commits

Author SHA1 Message Date
An Tao 995b8e8b82
Set Hiredis_FOUND to true when finding Hiredis library (#1406) 2022-10-10 10:02:11 +08:00
Greisberger Christophe f017b09947
Added HttpResponse::newStreamResponse() (#1156) 2022-05-02 21:04:41 +08:00
autoantwort bfb25a3765
Accept system lib for uuid on macOS (#1152) 2022-01-09 12:04:38 +08:00
timomrs 88f4f090a8
Allow using json_cpp in other sublibraries (#1145)
If another sublibrary also imports jsoncpp, `FindJsonCpp.cmake` fails with error message `add_library cannot create imported target Jsoncpp_lib because another target with the same name already exists.`.  Adding the `if (NOT TARGET Jsoncpp_lib)`-guard fixes this.

It might be useful to check if there's a similar problem with other sublibraries included by Drogon.
2022-01-08 12:33:35 +08:00
Martin Chang 719d50c0a7
Remove setting c++17 in FindFilesystem (#1102) 2021-12-11 10:02:45 +08:00
Martin Chang e2eb674781
Fix Drogon not building caused by FindFilesystem (#1056)
* fix FindFilesystem not using the correct header for printf

* fix FS not found on Yocto
2021-10-21 19:43:53 +08:00
Bertrand Darbon 9b09abe274
fix(cmake): error in FindFilesystem (#1035)
When building an application on Windows using Drogon as a dependency and with warnings treated as errors, the FindFilesystem.cmake generates this error (in CMakeError.log):

```
src.cxx(6): error C2220: the following warning is treated as an error
src.cxx(6): warning C4477: 'printf' : format string '%s' requires an argument of type 'char *', but variadic argument 1 has type 'const std::filesystem::path::value_type *'
src.cxx(6): note: consider using '%ls' in the format string
src.cxx(6): note: consider using '%lls' in the format string
src.cxx(6): note: consider using '%Ls' in the format string
src.cxx(6): note: consider using '%ws' in the format string
```

Documentation of std::filesystem::path: value_type: character type used by the native encoding of the filesystem: char on POSIX, wchar_t on Windows

Using generic_string() fixes this warning
2021-09-28 19:55:30 +08:00
Martin Chang 133e6dc2ef
Update C++ version detection logic (#993)
* Maintain compatibility with cmake generated from older drogon_ctl
 * Use user-defined C++ version when possible
 * C++ version detection no-longer depends on std::filesystem availability
 * Link against c++fs in DrogonConfig.cmake if on those versions of GCC
 * Allow DrogonConfig to use user-defined C++ version
2021-08-24 16:34:07 +08:00
陈晓林 e478b63dda
Add support 'select <db>' for redis (#847)
Co-authored-by: an-tao <antao2002@gmail.com>
2021-05-12 18:32:49 +08:00
An Tao 6d9aa3b44c
Add redis support (#719) 2021-03-13 19:13:54 +08:00
an-tao fd720d55d9 Modify FindMySQL.cmake 2021-02-17 10:02:52 +08:00
Martin Chang 4210dbce07
Revert OS X CI fix (#721) 2021-02-17 09:58:33 +08:00
Martin Chang a060351f7a
Fix CI fail on OS X (#699) 2021-02-03 13:10:08 +08:00
ivanka2012 64fe47acd8
Fix brotli link order (#651) 2020-12-12 19:39:26 +08:00
An Tao ed2818ed89
Find mariadb client library correctly on Ubuntu 20.04 (#613) 2020-10-24 14:28:39 +08:00
interfector18 eafdc5d357
Add causal profiling with coz (#414) 2020-04-30 13:30:37 +08:00
An Tao c43ba9e514
Add support for brotli compression (#406) 2020-04-04 18:15:15 +08:00
An Tao c46c7f3570
Fix DrogonConfig.cmake for Windows (#403) 2020-03-24 22:08:12 +08:00
An Tao f5e87acd9b
Remove dependency on pkg-config (#398)
Considering that on FreeBSD, pkg-config has been replaced by pkgconfig, we should remove the dependency on pkg-config.
2020-03-21 12:41:15 +08:00
An Tao 7af67dc4da
Make CMake install files relocatable (#387) 2020-03-18 19:54:48 +08:00
An Tao e171874524
Modify installation on Windows (#366) 2020-02-29 15:46:08 +08:00
An Tao 978bd7c32f
Fix error when finding the jsoncpp library (#356) 2020-02-22 11:34:05 +08:00
An Tao 58702dc41e
Port drogon to Windows (#335)
Co-authored-by: mcirsta <mforce2@gmail.com>
2020-01-25 11:58:20 +08:00
antao 161a964238 Start adding sqlite3 support 2018-12-29 13:12:36 +08:00
antao a5c0d33011 Update the FindMySQL.cmake 2018-12-03 17:15:38 +08:00
an-tao ffbdac36c9 Modify cmake files for the mariadb database on linux 2018-12-03 17:03:45 +08:00
antao 21cb1b482a Start adding mysql(mariadb) support 2018-12-03 10:13:31 +08:00
an-tao 5bf0746673 chmod 2018-06-06 09:35:04 +08:00
an-tao 5cc1ab00e5 fix find libjsoncpp bug in CMakeLists.txt 2018-06-03 21:29:45 +08:00
an-tao ecfea6f713 add HttpAppFramework class,not complete 2018-05-02 17:45:10 +08:00