Ah, yes. I see that now. I didn't read the code closely enough. This gets closer to what I want in terms of generate time callbacks, but if I need to process the output in some way then I'm still out of luck. For FindCUDA I need to process C/CXX flags individually (i.e. run arbitrary CMake code), and I would still be unable to do so with this mechanism. I guess I might be able to more of that processing into the build time executed script....
On Tue, Jun 4, 2013 at 1:51 PM, Brad King <brad.k...@kitware.com> wrote: > On 06/04/2013 03:46 PM, James Bigler wrote: > > The $<TARGET_PROPERTY:...> expression is one, so you're in luck. > > > > OK, so now I'm confused. I see a file(WRITE) that is a configure time > > write, but the content of the file has generation time stuff in it like > > $<TARGET_PROPERTY:${moc_target},INCLUDE_DIRECTORIES>. > > It's using a new file(GENERATE) command added since 2.8.11 to do > generate-time file content evaluation. > > -Brad >
-- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers