[CMake] FILE command in make_custom_target

Philippe Fremy phil at freehackers.org
Wed Jun 20 08:28:50 EDT 2007


Brandon Van Every wrote:
> On 6/19/07, Bill Hoffman <bill.hoffman at kitware.com> wrote:
>> Philippe Fremy wrote:
>> >
>> > It is ironic that a running cmake instance, that supports platform
>> > agnostic directory creation, is not able to do that inside a rule and
>> > has to fallback an calling a second cmake instance for that.
>> >
>> >
>> Actually, when a custom command is run, there is no running cmake
>> instance.  That is run
>> during build time, and at that point cmake is no longer running, make,
>> or some IDE is running.
> 
> I guess the desire here, is for CMake script commands to be available
> inside of custom commands, and for these to generate the right things
> inside of native build files.

As far as I am concerned, the solution of calling CMake -E explicitely
is good (when you have in mind that CMake is no longer running).

All in all, CMake is a good and powerful tool, but I find that the
documentation is lacking behind. More structure, more usage example,
more common cases would in my opinion really help the user experience.

On the other side, the mailing list is very reactive.

	cheers,

	Philippe




More information about the CMake mailing list