[CMake] Xcode generator

E. Wing ewmailing at gmail.com
Wed Apr 1 20:14:48 EDT 2009


> 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


More information about the CMake mailing list