[aspect-devel] Switching Aspect to cmake

Thomas Geenen geenen at gmail.com
Sun Aug 11 13:30:05 PDT 2013


this could happen when you have a left over CMakeCache.txt file in the
source dir
they call it a feature......

http://www.cmake.org/Wiki/CMake_FAQ#I_run_an_out-of-source_build_but_CMake_generates_in-source_anyway._Why.3F

cheers
Thomas



On Sun, Aug 11, 2013 at 8:22 PM, Wolfgang Bangerth
<bangerth at math.tamu.edu>wrote:

>
> OK, I take this as a vote for cmake. Anyone opposed?
>
> Matthias -- using the current aspect CMakeLists.txt, whenever I create a
> different directory and do something like
>   cmake -DDEAL_II_DIR=... ../aspect
> it ends up saying
>
> -- Autopilot invoked
> -- Run   $ make help   to print a detailed help message
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/bangerth/p/deal.II/2/**
> projects/aspect
>
> ...which is my source directory, not the current build dir. The newly
> created build dir remains empty. What do I need to do to enable
> out-of-source builds?
>
> Best
>  W.
>
>
>
>
> On 08/11/2013 04:48 AM, Thomas Geenen wrote:
>
>> with cmake you can always build out of source if you want by creating
>> your own
>> dir and running cmake from there. i usually have a few different builds
>> around
>> (different compilers and/or mpi flavors, instrumented with scalasca etc)
>> with cmake i will be able to do that more efficiently compared with the
>> current make based setup.
>>
>> cheers
>> Thomas
>>
>>
>>
>> On Sun, Aug 11, 2013 at 12:28 AM, Wolfgang Bangerth <
>> bangerth at math.tamu.edu
>> <mailto:bangerth at math.tamu.edu**>> wrote:
>>
>>
>>     All,
>>     now that we've switched deal.II to cmake, I'd like to do the same with
>>     Aspect. There is already a CMakeLists.txt in the project and it
>> produces a
>>     file ./aspect if you run it in-source (which I, in fact, like a lot
>> better
>>     than hiding it in lib/).
>>
>>     Would there be reasons to run cmake out-of-source? Does anyone see a
>>     reason to have multiple Aspect installations from the same source
>> tree? If
>>     not, I'd propose we just nuke the existing Makefile and the lib/
>>     directory, and update the manual.
>>
>>     Thoughts?
>>
>>     Cheers
>>       W.
>>     --
>>     ------------------------------**__----------------------------**
>> --__------------
>>     Wolfgang Bangerth               email: bangerth at math.tamu.edu
>>     <mailto:bangerth at math.tamu.edu**>
>>                                      www:
>>     http://www.math.tamu.edu/~__**bangerth/<http://www.math.tamu.edu/~__bangerth/><
>> http://www.math.tamu.edu/~**bangerth/<http://www.math.tamu.edu/~bangerth/>
>> >
>>
>>     ______________________________**___________________
>>     Aspect-devel mailing list
>>     Aspect-devel at geodynamics.org <mailto:Aspect-devel@**geodynamics.org<Aspect-devel at geodynamics.org>
>> >
>>     http://geodynamics.org/cgi-__**bin/mailman/listinfo/aspect-__**devel<http://geodynamics.org/cgi-__bin/mailman/listinfo/aspect-__devel>
>>     <http://geodynamics.org/cgi-**bin/mailman/listinfo/aspect-**devel<http://geodynamics.org/cgi-bin/mailman/listinfo/aspect-devel>
>> >
>>
>>
>>
>>
>>
>> ______________________________**_________________
>> Aspect-devel mailing list
>> Aspect-devel at geodynamics.org
>> http://geodynamics.org/cgi-**bin/mailman/listinfo/aspect-**devel<http://geodynamics.org/cgi-bin/mailman/listinfo/aspect-devel>
>>
>>
>
> --
> ------------------------------**------------------------------**
> ------------
> Wolfgang Bangerth               email:            bangerth at math.tamu.edu
>                                 www: http://www.math.tamu.edu/~**bangerth/<http://www.math.tamu.edu/~bangerth/>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://geodynamics.org/pipermail/aspect-devel/attachments/20130811/ab3f5ce0/attachment.html>


More information about the Aspect-devel mailing list