<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>It wouldn't. That's why your devs would have to agree to use it...</div><div><br>On Apr 9, 2013, at 9:36 AM, Petr Kmoch <<a href="mailto:petr.kmoch@gmail.com">petr.kmoch@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">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?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Apr 9, 2013 at 3:33 PM, David Cole <span dir="ltr"><<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto"><div>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...</div><div><div class="h5"><div><br></div><div><br>On Apr 9, 2013, at 8:51 AM, Petr Kmoch <<a href="mailto:petr.kmoch@gmail.com" target="_blank">petr.kmoch@gmail.com</a>> wrote:<br>
<br></div><blockquote type="cite"><div><div dir="ltr"><div>Hi.<br><br>Just for context: I've filed a request for generic support for post-generation commands some time ago (<a href="http://public.kitware.com/Bug/view.php?id=13020" target="_blank">http://public.kitware.com/Bug/view.php?id=13020</a>), 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.<br>
<br></div>There is no way at present, to the best of my knowledge, to get a "post-generation hook" into CMake.<br><div><br>Petr<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 9, 2013 at 2:36 PM, <a href="mailto:turbulent1975@gmail.com" target="_blank">turbulent1975@gmail.com</a> <span dir="ltr"><<a href="mailto:turbulent1975@gmail.com" target="_blank">turbulent1975@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I’m trying to use CMake (version 2.8.10) for a Fortran project with Visual Studio 10<br>
and Intel Visual Fortran Composer XE 2011. But the generated VS solution and<br>
project file seems to have trouble in correctly determine the dependencies of<br>
Fortran 90 files/modules when m4 preprocess envolved.<br>
(See <a href="http://www.cmake.org/pipermail/cmake/2012-December/052886.html" target="_blank">http://www.cmake.org/pipermail/cmake/2012-December/052886.html</a>)<br>
<br>
Finally I write a Perl script to modified the .sln file generated by CMake and solve the<br>
problem. At the moment, I execute the script manually after the cmake configuration.<br>
My question is: Can Cmake execute the script automatically?<br>
<br>
I’ve tried to add an “execute_process” command at the end of the file CMakeLists.txt.<br>
But it does not work because the VS .sln file seems to be generated after all the<br>
commands in CMakeLists.txt.<br>
<br>
Meanwhile, I find a similar subject “[CMake] Post-Generate commands”<br>
(<a href="http://www.cmake.org/pipermail/cmake/2010-May/037128.html" target="_blank">http://www.cmake.org/pipermail/cmake/2010-May/037128.html</a>) in CMake archives.<br>
In that thread Bill Hoffman said, “This sounds like a good thing to make a C++ change<br>
for. If you are willing to test the intel compiler, I would accept the changes into the<br>
main cmake repository.”<br>
<br>
Is there an elegant solution for the problem at present?<br>
<br>
Hansom Bear<br>
2013-04-09<br>
<br>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>--</span><br><span></span><br><span>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a></span><br><span></span><br><span>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a></span><br>
<span></span><br><span>Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a></span><br><span></span><br><span>Follow this link to subscribe/unsubscribe:</span><br>
<span><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a></span></div></blockquote></div></div></div></blockquote></div><br></div>
</div></blockquote></body></html>