[CMake] Compiling fortran

Juan Sanchez Juan.Sanchez at amd.com
Wed Sep 26 10:28:38 EDT 2007


It turns out that any word of the word Use or use as a word anywhere in
a comment causes the dependency scanner to use the next token on the
line as a module dependency.

So I changed all the code to use xUse and xuse.

Thanks,

Juan

Alin M Elena wrote:
> On Wednesday 26 September 2007 04:37:33 cmake-request at cmake.org wrote:
>> While the cmake man page does not document the proper capitalization of
>> Fortran for creating a fortran based project, I am now at the point the
>> compilation does not work for another reason.
>>
>> Does anyone have an idea what this means?
>>
>>
>> Clearing dependencies in "CMakeFiles/pisces.dir/depend.make".
>> Clearing dependencies in "CMakeFiles/pisces.dir/depend.internal".
>> /usr/bin/cmake -E cmake_progress_start
>> /home/anon/svn/svn_repository/relB.9009/pisces/9009/src/CMakeFiles 50
>> make -f CMakeFiles/Makefile2 all
>> make[1]: Entering directory
>> `/home/anon/svn/svn_repository/relB.9009/pisces/9009/src'
>> make -f CMakeFiles/pisces.dir/build.make CMakeFiles/pisces.dir/depend
>> make[2]: Entering directory
>> `/home/anon/svn/svn_repository/relB.9009/pisces/9009/src'
>> Scanning dependencies of target pisces
>> cd /home/anon/svn/svn_repository/relB.9009/pisces/9009/src &&
>> /usr/bin/cmake -E cmake_depends "Unix Makefiles"
>> /home/anon/svn/svn_repository/relB.9009/pisces/9009/src
>> /home/anon/svn/svn_repository/relB.9009/pisces/9009/src
>> /home/anon/svn/svn_repository/relB.9009/pisces/9009/src
>> /home/anon/svn/svn_repository/relB.9009/pisces/9009/src
>> /home/anon/svn/svn_repository/relB.9009/pisces/9009/src/CMakeFiles/pisces.d
>> ir/DependInfo.cmake make[2]: Leaving directory
>> `/home/anon/svn/svn_repository/relB.9009/pisces/9009/src'
>> make -f CMakeFiles/pisces.dir/build.make CMakeFiles/pisces.dir/requires
>> make[2]: Entering directory
>> `/home/anon/svn/svn_repository/relB.9009/pisces/9009/src'
>> make[2]: *** No rule to make target `new.mod.proxy', needed by
>> `CMakeFiles/pisces.dir/filopncls.o.requires'.  Stop.
>> make[2]: Leaving directory
>> `/home/anon/svn/svn_repository/relB.9009/pisces/9009/src'
>> make[1]: *** [CMakeFiles/pisces.dir/all] Error 2
>> make[1]: Leaving directory
>> `/home/anon/svn/svn_repository/relB.9009/pisces/9009/src'
>>
>> Thanks,
>>
>> Juan
> 
> Yap It is a "feature" of cmake (even there are some bug reports about it). You 
> should do (in the root folder of the project, where the CMakeLists.txt 
> resides)
> touch new.mod.proxy
> and the same for any other that complains about.
> 
> Alin
> 


-- 
Juan Sanchez
Juan.Sanchez at amd.com
800-538-8450 Ext. 54395
512-602-4395




More information about the CMake mailing list