<div dir="ltr"><div>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.</div><div><br></div><div>James<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 23 Feb 2021 at 22:06, 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">I've edited CMakeCache.txt so many times that I have no idea what to specify on the 'cmake' command line. Should I just guess, run cmake, copy my existing file on top of CMakeCache.txt, and run cmake again?<br>
<br>
At 2/23/2021 04:46 PM, Stefanos Baziotis wrote:<br>
>Hi Paul,<br>
><br>
>Maybe I missed something but why do you need to copy directories if you want to build from scratch?<br>
>Just use the same CMake arguments you used in the original 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>