drogon/cmake_modules
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
..
FindBrotli.cmake Fix brotli link order (#651) 2020-12-12 19:39:26 +08:00
Findcoz-profiler.cmake Add causal profiling with coz (#414) 2020-04-30 13:30:37 +08:00
FindFilesystem.cmake fix(cmake): error in FindFilesystem (#1035) 2021-09-28 19:55:30 +08:00
FindHiredis.cmake Add redis support (#719) 2021-03-13 19:13:54 +08:00
FindJsoncpp.cmake Make CMake install files relocatable (#387) 2020-03-18 19:54:48 +08:00
FindMySQL.cmake Add support 'select <db>' for redis (#847) 2021-05-12 18:32:49 +08:00
Findpg.cmake Fix DrogonConfig.cmake for Windows (#403) 2020-03-24 22:08:12 +08:00
FindSQLite3.cmake Make CMake install files relocatable (#387) 2020-03-18 19:54:48 +08:00
FindUUID.cmake Remove dependency on pkg-config (#398) 2020-03-21 12:41:15 +08:00