----- Mail original ----- > De: "Satish Balay" <ba...@mcs.anl.gov> > À: "petsc-dev" <petsc-dev@mcs.anl.gov> > Cc: "Franck Houssen" <franck.hous...@inria.fr> > Envoyé: Dimanche 5 Novembre 2017 15:16:48 > Objet: Re: [petsc-dev] CMake: make, install, find_package ? > > BTW: why are prefering all-cmake build over all-gnumake build?
I have no preference ! > > Or are you having trouble with > https://github.com/jedbrown/cmake-modules/blob/master/FindPETSc.cmake ? > [and not with PETSc build?] At first, I was trying to understand why find_package(petsc) was not working. So then, I looked at the way the make/install was done: that lead me to look at the CMakeLists.txt and test it. > > Satish > > On Sun, 5 Nov 2017, Satish Balay wrote: > > > PETSc has 3 modes of building libraries > > > > 1. all-legacy: using legacy makefiles [which uses vanila make in recursive > > mode] > > 2. all-cmake: using cmake to generate gnumakefiles > > 3. all-gnumake: using gnumakefiles > > > > Now all-gnumake build is the default/primary. with it working in all > > cases - there is no real reason for all-cmake build. > > > > [we still use all-legacy for documentation generation and examples, and a > > few other cases] > > > > So all-cmake is not tested and unsupported. But the code is still there and > > is not removed [or updated] > > > > However - I just tired a simple 'all-cmake' build - and that worked. > > [attaching make.log] > > > > What did not work for you? Please send relavent logs. Didn't find mpi.mod. find_package(MPI) was missing: I just added it. Still can push if you want to have a look (?). > > > > Satish > > > > On Sun, 5 Nov 2017, Franck Houssen wrote: > > > > > Hello, > > > > > > Does PETSc provide support for CMake ? I would say this is an on-going > > > feature that is not yet fully working, right ? > > > My understanding is that "./configure" generates the CMakeLists.txt. But > > > then, when using cmake, make fails. > > > Is this supposed to work yet ? Or is this on-going dev ? (google is > > > misleading about that, and, not seen anything in the doc) > > > > > > Franck > > > > > > PS : I got it to work (partially - for petsc, not external packages) on > > > my laptop (debian). I may (?) push I somebody is interested to have a > > > look (on going dev ?). > > > > > > >