<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Folks,<br>
<br>
I am attempting to use the CMake stuff that Jed put in place to
build PETSc. I'm following the instructions currently found at <a
class="moz-txt-link-freetext"
href="http://www.mcs.anl.gov/petsc/petsc-2/developers/index.html:">http://www.mcs.anl.gov/petsc/petsc-2/developers/index.html:</a><br>
<br>
<blockquote type="cite">
<p> The main reasons for using CMake are parallel builds,
dependency analysis, and IDE integration. The following
instructions assume that you have CMake version 2.6 or later
installed. </p>
<ol>
<li>Configure as usual with ./configure, provide
--with-cmake=/path/to/cmake if the CMake executable is not in
your PATH.</li>
<li>Run make in the build directory ($PETSC_DIR/$PETSC_ARCH),
the value of the environment variables is not important.</li>
</ol>
</blockquote>
<br>
Do these need updating? Or am I just doing something stupid? I've
run configure with '--with-cmake' specified appropriately, and a
top-level CMakeLists.txt file gets created. But when I try to run
cmake with $PETSC_DIR/$PETSC_ARCH as my build directory, I get<br>
<br>
-----<br>
rmills@ubuntu:~/proj/petsc-dev/ubuntu-gnu_g$ cmake ..<br>
CMake Error at CMakeLists.txt:4 (include):<br>
include could not find load file:<br>
<br>
/home/rmills/proj/petsc-dev/conf/PETScConfig.cmake<br>
<br>
<br>
-- Configuring incomplete, errors occurred!<br>
-----<br>
<br>
Line 4 of the CMakeLists.txt file attempts <br>
<br>
include (${PETSc_BINARY_DIR}/conf/PETScConfig.cmake)<br>
<br>
It looks like PETSc_BINARY_DIR should be $PETSC_DIR/$PETSC_ARCH, but
just $PETSC_DIR is being used. How is this supposed to be set? I
don't know CMake very well, so my apologies if this is a dumb
question.<br>
<br>
Thanks,<br>
Richard<br>
<br>
-- <br>
<pre class="moz-signature" cols="78">Richard Tran Mills, Ph.D. | E-mail: <a class="moz-txt-link-abbreviated" href="mailto:rmills@climate.ornl.gov">rmills@climate.ornl.gov</a>
Computational Scientist | Phone: (865) 241-3198
Computational Earth Sciences Group | Fax: (865) 574-0405
Oak Ridge National Laboratory | <a class="moz-txt-link-freetext" href="http://climate.ornl.gov/%7Ermills">http://climate.ornl.gov/~rmills</a>
</pre>
</body>
</html>