drogon
drogon copied to clipboard
Compile bug report when using Clang in Windows system
I installed the drogon library with vcpkg, but when compiling with clang in my project, vcpkg uses msvc to compile the "\wd4251 \wd4275" introduced by drogon, and it causes a compilation error.
[build] C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -DFMT_SHARED -DNOMINMAX -IC:/Users/YSY_e/Documents/code/simona2/build -isystem C:/vcpkg/installed/x64-windows/include -O0 -g -Xclang -gcodeview -std=c++20 -D_DEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrtd -finput-charset=UTF-8 /wd4251 /wd4275 -MD -MT simona2/communication/CMakeFiles/controller.dir/src/http_message_handler.cpp.obj -MF simona2\communication\CMakeFiles\controller.dir\src\http_message_handler.cpp.obj.d -o simona2/communication/CMakeFiles/controller.dir/src/http_message_handler.cpp.obj -c C:/Users/YSY_e/Documents/code/simona2/simona2/communication/src/http_message_handler.cpp
[build] clang++: error: no such file or directory: '/wd4251'
[build] clang++: error: no such file or directory: '/wd4275'
https://github.com/drogonframework/drogon/blob/3e944d28d8c6c438a69d15e8ede6f986126e217f/CMakeLists.txt#L76C69-L76C69
Having the same issue :(