dev-cafe / autocmake

CMake plugin composer.
http://autocmake.org
BSD 3-Clause "New" or "Revised" License
41 stars 18 forks source link

[enhancement] save text file with the setup command #204

Closed miroi closed 7 years ago

miroi commented 7 years ago

Hi Rado,

Some time ago I compiled Dirac with plenty of setup flags (parallel, exotic library, extra compiler flags etc):

production_trunk/build_openmpi_intel15_i8_xhost_openblas

However, now I can not remember the exact setup parameters for the working dirac.x executable.

So I advocate the enhancement - let setup saves the file with the exact command and flags into build/ directory. Let's name this file as setup_command.txt or similar.

Comments ?

bast commented 7 years ago

That's a good idea but it should already happen: https://github.com/coderefinery/autocmake/blob/master/autocmake/configure.py#L136-L142

If this does not happen, then I think this is a bug.

miroi commented 7 years ago

It happens ! The setup_command is there, in the DIRAC build directory. Closing this issue.

bast commented 7 years ago

:-)

miroi commented 7 years ago

I think the reason for not having setup_command in the build directory was that autocmake was not updated. Hmm. It would be good to have printed autocmake version in setup, I will open new issue for that.

bast commented 7 years ago

Version info is a good point but the setup_command has been there "forever".