<div dir="ltr">Are you running these commands from a VS command prompt, or a plain command prompt? I think you have to use the VS command prompt that sets up the environment variables to point to VS compilers, etc.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 24, 2021 at 12:52 PM Paul C. Anagnostopoulos via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">At 2/24/2021 03:56 AM, James Henderson wrote:<br>
>Unless everything is installed in the same location, copying the CMakeCache.txt likely won't work, as it includes things like paths to compilers in it, if I remember rightly. I've used diffs to try to identify which variables I've set before, but in practice, I end up just memorizing the three or four variables I tend to change from the defaults.<br>
<br>
Of course I'm not done with questions.<br>
<br>
When I run CMake, it complains that it cannot find the C, C++, and ASM compilers. I don't recall this problem before. I have Visual Studio installed, but CMake isn't finding it. <br>
<br>
If it matters, my build directory is not on the C drive. I'm using Ninja to build.<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>