<div id="RTEContent">Sorry, I musta have mada some very silliy mistake when originally posting:<br> <br> My CMakeLists.txt is as follows:<br> In the top directory,<br> <br> PROJECT(Veclib C Fortran)<br> <br> INCLUDE_DIRECTORIES(${Veclib_SOURCE_DIR}/../include)<br> <br> # For each subdirectory, include its CMakeLists.txt, according to procdure suggested by the CMake book<br> <br> INCLUDE(misc/CMakeLists.txt)<br> FOREACH(FILE ${FILES}<br> &nbsp; SET(misc&nbsp; ${misc} ${misc}/${FILE})<br> ENDFOREACH(FILE)<br> <br> ADD_LIBRARY(vec ${misc} ... ) # misc and variables corresponding to other directories<br> In directory misc, the CMakeLists.txt is:<br> <br> SET(FILES<br> &nbsp; xscatr.c<br> &nbsp; xgathr.c<br> &nbsp; # ... Several other C files<br> &nbsp; zbesj.f)<br> <br> If I simply exclude zbesj.f, the library is built fine but if I include it, then the error mentioned occurs.<br> <br> Thanks,<br> <br> Paulo Jabardo<br> <br><br><b><i>"William A. Hoffman"
 &lt;billlist@nycap.rr.com&gt;</i></b> escreveu:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Please post the CMakeLists.txt files and not just the output of the build.<br><br>-Bill<br><br><br>At 12:59 PM 11/8/2005, Paulo Jabardo wrote:<br>&gt;I'm trying to write a CMakeLists.txt file for a static<br>&gt;library which has several c files in a few different<br>&gt;directories and a single fortran file.<br>&gt;<br>&gt;I used an approach suggested in the CMake book and if<br>&gt;eliminate the fortran file, the program will build<br>&gt;allright. Once I include the fortran file (in a<br>&gt;directory with other c files) I get an error.<br>&gt;<br>&gt;My top CMakeLists.txt file is as foollows:<br>&gt;<br>&gt;&gt;make<br>&gt;Scanning dependencies of target vec<br>&gt;make[2]: *** No rule to make target<br>&gt;`FORWARD.mod.proxy', needed by<br>&gt;`CMakeFiles/vec.dir/misc/zbesj.o.requires'.  Stop.<br>&gt;make[1]: ***
 [CMakeFiles/vec.dir/all] Error 2<br>&gt;make: *** [all] Error 2<br>&gt;<br>&gt;Any help is welcome<br>&gt;<br>&gt;<br>&gt;Thanks, Paulo Jabardo<br>&gt;<br>&gt;<br>&gt;<br>&gt;        <br>&gt;<br>&gt;<br>&gt;<br>&gt;        <br>&gt;                <br>&gt;_______________________________________________________ <br>&gt;Yahoo! Acesso Grátis: Internet rápida e grátis. <br>&gt;Instale o discador agora!<br>&gt;http://br.acesso.yahoo.com/<br>&gt;<br>&gt;_______________________________________________<br>&gt;CMake mailing list<br>&gt;CMake@cmake.org<br>&gt;http://www.cmake.org/mailman/listinfo/cmake<br><br></blockquote><br></div><p>
                <hr size=1> 
Yahoo! Acesso Grátis: Internet rápida e grátis.<br><a href="http://us.rd.yahoo.com/mail/br/tagline/discador/*http://br.acesso.yahoo.com/">Instale o discador agora!</a>