On 6/1/08, Bill Hoffman <[EMAIL PROTECTED]> wrote:
> Dave Milter wrote:
>  \
>
> >
> > I look at generated by cmake makefiles, and all generated files depend on
> > CMakeLists.txt
> >
>
>  Please create a small example that shows your problem.
>

I hope this mailing list accept attachments.
Look at regenerate_problem.tar.gz in attachment.
It compiles on only unix like os,  because of it uses /bin/sh.

Part of CMakeLists.txt looks like this:
------------------------------------------------------
ADD_EXECUTABLE(regenerate_problem
        main.cpp
        ${CMAKE_CURRENT_BINARY_DIR}/ui_foo.hpp
        foo.cpp
        #foo2.cpp
)
------------------------------------------------------
if build project, and after that uncomment foo2.cpp,
it calls script to regenerate ${CMAKE_CURRENT_BINARY_DIR}/ui_foo.hpp,
but rule to build ui_foo.hpp not changed, script to build ui_foo.hpp
not changed,
and ui_foo.hpp exists and uptodate, but
generated by cmake makefile cause it reneration, and this of cause rebuild
files which depends on ui_foo.hpp.

Attachment: regenerate_problem.tar.gz
Description: GNU Zip compressed data

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to