<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> SET(misc ${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> xscatr.c<br> xgathr.c<br> # ... Several other C files<br> 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"
<billlist@nycap.rr.com></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>>I'm trying to write a CMakeLists.txt file for a static<br>>library which has several c files in a few different<br>>directories and a single fortran file.<br>><br>>I used an approach suggested in the CMake book and if<br>>eliminate the fortran file, the program will build<br>>allright. Once I include the fortran file (in a<br>>directory with other c files) I get an error.<br>><br>>My top CMakeLists.txt file is as foollows:<br>><br>>>make<br>>Scanning dependencies of target vec<br>>make[2]: *** No rule to make target<br>>`FORWARD.mod.proxy', needed by<br>>`CMakeFiles/vec.dir/misc/zbesj.o.requires'. Stop.<br>>make[1]: ***
[CMakeFiles/vec.dir/all] Error 2<br>>make: *** [all] Error 2<br>><br>>Any help is welcome<br>><br>><br>>Thanks, Paulo Jabardo<br>><br>><br>><br>> <br>><br>><br>><br>> <br>> <br>>_______________________________________________________ <br>>Yahoo! Acesso Grátis: Internet rápida e grátis. <br>>Instale o discador agora!<br>>http://br.acesso.yahoo.com/<br>><br>>_______________________________________________<br>>CMake mailing list<br>>CMake@cmake.org<br>>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>