Hi all, here comes the testcase:
project(cmakeBug) set(src ${PROJECT_SOURCE_DIR}/src) set(inc ${PROJECT_SOURCE_DIR}/inc) add_custom_command(OUTPUT ${inc}/test.h ${inc}/test2.h ${src}/test.c COMMAND echo "//foo" > ${inc}/test.h COMMAND echo "//foo" > ${inc}/test2.h COMMAND echo "//bar" > ${src}/test.c ) add_executable(test ${src}/main.c ${src}/test.c) Under windows XP cmake 2.8 the first file (test.h) will be always deleted when cmake is invoked, while the other ones still exist. This does not happen, when add_custom_command has only one output file. Obviously a bug. _______________________________________________ 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