mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-12-02 03:38:03 +08:00
9b09abe274
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 |
||
---|---|---|
.. | ||
FindBrotli.cmake | ||
Findcoz-profiler.cmake | ||
FindFilesystem.cmake | ||
FindHiredis.cmake | ||
FindJsoncpp.cmake | ||
FindMySQL.cmake | ||
Findpg.cmake | ||
FindSQLite3.cmake | ||
FindUUID.cmake |