Upgraded to visual studio 2019 recently.
I am using my own llvm/clang version for a project, as it requires a specific version of these, not newer nor older.
On visual studio 2017, I am able to use them fine, llvm and clang 7.0, but with a different build platform, i used to have cmake -DCMAKE_GENERATOR_PLATFORM=x64,
now after switching to 2019, that somehow is not working, so I am using cmake -T ClangCL. I have installed the c++ clang-cl for v142 build tools(x64/x86).
I have also specified my llvm/clang path in the PATH of my env variable, and cmake is able to find everything... nothing strange to me.
However, when I start to compile the project, it feels like visual studio 2019 wants to use clang 11.0 since it keeps erroring me about it and many other errors come with this one. I tried to change the llvm version in advanced option to 10.0.0, but it does not work. I have also created Directory.build.props that points directly to the clang/llvm I want to use, that helps to get the cmake working, since it wasn't finding the compiler originally.
I searched many places online, nothing I could find that is similar to what i have.. Could someone help with this?
Thanks!