-
Notifications
You must be signed in to change notification settings - Fork 943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building using Clang-cl and Ninja fails on Windows #927
Comments
@Sightem thanks for reporting! Could you please provide a log so I can see if I actually can reproduce the same issue? |
Thanks! Somehow it's trying to compile for cpp98 but cpr requires at least cpp11 (https://github.com/libcpr/cpr#supported-releases). I will spin up my Windows VM later today, to try reproducing it since you are setting cpp20 as standard via |
Thanks for your response! I appreciate this greatly |
Confirmed for the latest |
I'm currently working on a branch to fix this: https://github.com/libcpr/cpr/tree/fix/clang-windows-warnings |
Should work now. Could you please validate this with the latest commit of the |
Description
Running CMake with Ninja as it's generator specified using the
-G
parameter seems to be broken, at least when used with fetch content.Example/How to Reproduce
cd build
cmake -G "Ninja" -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl ..
ninja
Possible Fix
No response
Where did you get it from?
GitHub (branch e.g. master)
Additional Context/Your Environment
cmake -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl ..
(this uses Visual Studio 17 2022)The text was updated successfully, but these errors were encountered: