Closed Sightem closed 1 year ago
@Sightem thanks for reporting! Could you please provide a log so I can see if I actually can reproduce the same issue?
@Sightem thanks for reporting! Could you please provide a log so I can see if I actually can reproduce the same issue?
Definitely! Here is a complete paste of the process including running every command. I apologize in advance if I don't reply fast, I am writing this at 4 in the morning
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 set(CMAKE_CXX_STANDARD 20)
.
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
set(CMAKE_CXX_STANDARD 20)
.
Thanks for your response! I appreciate this greatly
Confirmed for the latest master
commit and the example repo: https://github.com/libcpr/example-cmake-fetch-content
I'm currently working on a branch to fix this: https://github.com/libcpr/cpr/tree/fix/clang-windows-warnings The plan is to finish this in the next two days since I want to integrate this with a CI run in #837.
Should work now. Could you please validate this with the latest commit of the clang-windows-warnings
branch.
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)