[Cmake] (no subject)

Bill Hoffman bill . hoffman at kitware . com
Thu, 21 Aug 2003 08:54:13 -0400


This is a result of using AUX_SOURCE_DIR and GLOB to create source lists.
If the list of sources is put explicitly in the CMakeLists.txt file, then
to add/remove a file, you must edit the CMakeLists.txt file.  If the CMakeLists.txt
file is edited, then cmake will automatically re-run and everything will work.

If you do not list the sources explicitly, then you must re-run cmake by hand
each time you add or remove a file.  CMake is not always run during the build process,
so there is no way to tell that it needs to be run from make, unless an input file
changes.

-Bill

At 03:38 AM 8/21/2003, Mónica Hernández Giménez wrote:
>Hi!
>
>I use cmake to generate the Makefiles in my folders src and applications. If I remove any file (for example, uzSimpson) from them and I use my compiler (gcc) then  I get this compilation error
>
>gmake[1]: *** No rule to make target `/home/tsc/cv/monica/uzLevelset/levelset/src/uzSimpson.cc', needed by `cmake.check_depends'.  Stop.
>
>If I add a file the compilation ignores it.
>
>Is there any way of automatic actualization of this issues?
>
>Thank you.
>
>
>------------------------------------------------------------------------------------------------------------------
>Mónica Hernández Giménez
>Departamento de Ingeniería Electrónica y Comunicaciones
>Lab. 3.05
>Centro Politécnico Superior. Universidad de Zaragoza
>Phone. (+34) 976 76 27 05
>Fax:    (+34) 976 76 21 11
>e-mail: mhg at unizar . es
>------------------------------------------------------------------------------------------------------------------
>
>
>
>
>
>
>
>
>_______________________________________________
>Cmake mailing list
>Cmake at www . cmake . org
>http://www . cmake . org/mailman/listinfo/cmake