On Monday 14 March 2011, Enrique Izaguirre wrote: > Hello friends, > > I have a problem when I try to compile several files, for some reason it > takes only the first of the list to build it. > It displays a few warnings and at the end the following error: > > make[2]: *** [CMakeFiles/omap.dir/host/fastboot.c.o] Error 1 > make[2]: Leaving directory `/home/x0148488/omapflash/cmake_build' > make[1]: *** [CMakeFiles/omap.dir/all] Error 2 > make[1]: Leaving directory `/home/x0148488/omapflash/cmake_build' > make: *** [all] Error 2 > > Even before doing the add_executable ( ), I display first the variable that > contains the list of files to build, and it indeed has all the files to > compile; somehow it only compiles the first one and then leave. Running > make with the VERVOSE=1 I can see the command, and it has only the first > file of the list; so CMake is generating the command wrong.
No. The files are built one by one after each other. > Can you explain why only one file is compiled and not the entire list? Maybe I'm missing something... Isn't the build simply stopping because of a compile error ? You cut away too much from the compiler output, the actual error is not visible in the part above. Alex _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake