[CMake] Post-generate commands again

Petr Kmoch petr.kmoch at gmail.com
Tue Apr 9 08:51:13 EDT 2013


Hi.

Just for context: I've filed a request for generic support for
post-generation commands some time ago (
http://public.kitware.com/Bug/view.php?id=13020), but it was turned down.
So apparently a CMake C++ patch that would incorporate what your Perl
script currently does would be the way to get your issue fixed upstream.

There is no way at present, to the best of my knowledge, to get a
"post-generation hook" into CMake.

Petr


On Tue, Apr 9, 2013 at 2:36 PM, turbulent1975 at gmail.com <
turbulent1975 at gmail.com> wrote:

> Hi,
>
> I’m trying to use CMake (version 2.8.10) for a Fortran project with Visual
> Studio 10
> and Intel Visual Fortran Composer XE 2011. But the generated VS solution
> and
> project file seems to have trouble in correctly determine the dependencies
> of
> Fortran 90 files/modules when m4 preprocess envolved.
> (See http://www.cmake.org/pipermail/cmake/2012-December/052886.html)
>
> Finally I write a Perl script to modified the .sln file generated by CMake
> and solve the
> problem. At the moment, I execute the script manually after the cmake
> configuration.
> My question is: Can Cmake execute the script automatically?
>
> I’ve tried to add an “execute_process” command at the end of the file
> CMakeLists.txt.
> But it does not work because the VS .sln file seems to be generated after
> all the
> commands in CMakeLists.txt.
>
> Meanwhile, I find a similar subject “[CMake] Post-Generate commands”
> (http://www.cmake.org/pipermail/cmake/2010-May/037128.html) in CMake
> archives.
> In that thread Bill Hoffman said, “This sounds like a good thing to make a
> C++ change
> for.  If you are willing to test the intel compiler, I would accept the
> changes into the
> main cmake repository.”
>
> Is there an elegant solution for the problem at present?
>
> Hansom Bear
> 2013-04-09
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130409/e711311f/attachment.htm>


More information about the CMake mailing list