Hi, assuming I have the following statements: add_library(targetName src1 src2 ... generatedSrc) add_custom_command(TARGET targetName PRE_BUILD COMMAND bash -c "bla bla bla")
and the custom command generates sources which are specified before in "add_library" CMake/build process will abort since they don't exist already when specified (not needed actually). Unfortunately, since it is an automated process I cannot easily get the names of the generated sources, they're just included in the usual sources variable (I can't separate them from the others). Is there any possibility to get this working without knowing the source file names? regards -- 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
