> As you can see, when a rebuild is done, the template gets copied to > "main.cpp" which in turn is compiled and linked. This works great in > Xcode. But, whenever I change the template, i.e. my CUDA sources, I > have to run the build twice to make the changes appear in the test > program. It looks like the custom command is executed during the first > run and the generated file gets compiled in the second. > > Has anyone ever seen this? > >
I haven't had your exact problem, but I think I have encountered something similar which required me to build twice to capture changes. I think there is a bug in the CMake bootstrap. Since you have a good reproducible test case, would, I would encourage you to file a bug report on this in the CMake bug tracker. Thanks, Eric _______________________________________________ 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