I was thinking about using a wrapper script for my case as well. How would
this work with CMake automatically re-running when it detects a change in
CMakeLists?


On Tue, Apr 9, 2013 at 3:33 PM, David Cole <dlrd...@aol.com> wrote:

> If all your devs agree to use it, you could just write a two-line wrapper
> script: call CMake on line 1 and your perl script on line 2...
>
>
> On Apr 9, 2013, at 8:51 AM, Petr Kmoch <petr.km...@gmail.com> wrote:
>
> 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, turbulent1...@gmail.com <
> turbulent1...@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
>>
>
> --
>
> 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
>
>
--

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

Reply via email to