Building with MSVC tool chain #1193
Replies: 2 comments
-
I have now installed ninja for windows as well MSVC 2027, but I have no luck telling the CMake Gui where to find the CMAKE_CXX_COMPILER |
Beta Was this translation helpful? Give feedback.
-
If CMake can't find the compiler, then it's not in the $PATH environment for the current shell. That means you are running a regular shell (cmd.exe, PowerShell, bash, etc.) which won't have any of the necessary environment variables set. If you run Note that the MSVC toolchain includes ninja.exe, so you don't actually need a separate installation of that once you are running a shell that has the MSVC environment variables set. I've created issue #1196 to see if I can't get this whole process working directly in Visual Studio for those who normally use that IDE to build instead of using a command line. |
Beta Was this translation helpful? Give feedback.
-
As suggested I am starting this new thread regarding my trials to build the app using the MSVC tool chain.
I tried the command lines suggested, on my Win 11 PC, with both MSVC 2019 & MSVC 2022 community editions.
At this stage I only tried with MSVC 2022, but since the issues seem to relate to Ninja, I have not tried 2029 as yet.
If necessary, I can install MSVC 2017 as well.
I do have CMake & the CMAke GUI installed but seems to be stuck without Ninja
Beta Was this translation helpful? Give feedback.
All reactions