<div class="gmail_quote">On Mon, Jul 30, 2012 at 4:19 PM, Hadayat Seddiqi <span dir="ltr"><<a href="mailto:hadsed@gmail.com" target="_blank">hadsed@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<div><br></div><div>I'm working on a large numerical software project whose framework has largely been developed already. We're using CMake to generate makefiles. I'm also using SLEPc (for full disclosure). The examples given by PETSc and SLEPc documentation require me to include makefiles, but I don't know of any straightforward way to command CMake to do this for me.</div>
<div><br></div><div>I have looked at the FAQ's link for the CMake question: <a href="https://github.com/jedbrown/dohp" target="_blank">https://github.com/jedbrown/dohp</a> But this seems very old, and in any case it doesn't exactly work. </div>
</blockquote><div><br></div><div>The CMake stuff is here.</div><div><br></div><div><a href="https://github.com/jedbrown/cmake-modules/">https://github.com/jedbrown/cmake-modules/</a></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>I'm not an expert on CMake, so I couldn't say what was the causing the problem, but in the end it told me it could not find the PETSc libraries. It seemed to be rather complicated-- I know PETSc will be where I need it, so I don't need all the verification that it's there and everything works. I thought, with the benefit of more intimate knowledge of how PETSc runs, that someone could show a much simpler way (it seems to me that this ought to be the case).</div>
</blockquote><div><br></div><div>The problem is that there are lots of ways that things can "not work", so its important for the FindPETSc.cmake script to really try. Also, CMake insists on taking parameters in a different way (e.g. converting command-line flags to full paths).</div>
<div><br></div><div>Have you looked at the logs (CMakeFiles/CMake{Output,Error}.log</div><div><br></div><div>Here is more active package that uses the FindPETSc.cmake script</div><div><br></div><div><a href="https://github.com/pism/pism">https://github.com/pism/pism</a></div>
</div>