CMake error with msvc in CLion
Solved
Qt 6
-
Hi,
Your CMAKE_PREFIX_PATH should point to the "Qt/6.0.0/clang_64/lib/cmake" subdir.
-
What do you get if you use a simple:
find_package(Qt6 COMPONENTS Widgets)
?
-
Does it work with Qt Creator ?
-
I found CLion by default uses x86 as the Architecture for VS in the toolchains setting.
I changed it to amd64, it works on my machine.
You can try it.
-
@zhangyiant How would you change that?
-
@akshaybabloo File->Settings->Build,Execution,Deployment->Toolchains
Select "Visual Studio", and you can see “Architecture" configuration.
My CLion is version 2020.3.1.
-
@zhangyiant Thank you very much, I had such a problem too, it worked for me too.
-