[CMake] Dependency resolution for "add_custom_command" calls?
Hello, I try to generate some files mainly by calls of the command "add_custom_command". One of them should start with the action to copy a source file into the build directory. But I wonder why this step is not written into a generated make file. I would appreciate your advices. Regards, Markus -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Dependency resolution for "add_custom_command" calls?
On 2014-04-09 12:08, SF Markus Elfring wrote: I try to generate some files mainly by calls of the command "add_custom_command". One of them should start with the action to copy a source file into the build directory. But I wonder why this step is not written into a generated make file. I would appreciate your advices. CMake drops unused dependencies / rules from the generated build script. Do you have a target that depends on the output file? -- Matthew -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake