[CMake] Post-generate commands again
turbulent1975 at gmail.com
turbulent1975 at gmail.com
Tue Apr 9 08:36:57 EDT 2013
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
More information about the CMake
mailing list