[petsc-users] Building PETSc with cmake
Satish Balay
balay at mcs.anl.gov
Tue Sep 13 09:01:00 CDT 2011
On Tue, 13 Sep 2011, John Fettig wrote:
> What are the requirements for building PETSc with cmake? I have cmake
> version 2.8.1 installed, and configure finds it, but it does nothing
> with it. Is it because my python version is too old? This is on
> CentOS 5, I get these messages about cmake in the configure.log (with
> 3.2-p0):
>
> Checking for program /usr/local/bin/cmake...found
> Defined make macro "CMAKE" to "/usr/local/bin/cmake"
>
> ...
>
> Skipping cmakegen due to old python version: (2, 4, 3, 'final', 0)
> Skipping cmakeboot due to old python version: (2, 4, 3, 'final', 0)
yes - cmake part of configure requires python-2.5. Perhaps we should
look at this code and see if it can be made to work with 2.3+ [current
configure requirement]
If configure determines that cmake build won't work [either due to the
python version issue - or some other configue issue - for eg: windows
compilers - it won't offer this build option at tthe end.
> At the end of the configure, I'm not offered a way to build with
> cmake. I presume that cmake is the only way to do a parallel build?
Yes - currently cmake build is the only way to do parallel builds.
. Also builder.py [if it works for your config] could be faster than
the 'make all-legacy' build.
Satish
More information about the petsc-users
mailing list