Alan,

Thanks for the advice. Further comments below.

On Tue, Dec 05, 2006 at 11:07:14AM -0800, Alan Irwin wrote:
> On 2006-12-05 17:21-0000 Andrew Ross wrote:
> 
> I am a little concerned about the coincidence in names between your custom
> command OUTPUT file and your custom target.  That would have caused a
> problem for 2.4.4 with exactly the symptoms you see (nothing happens), but
> that bug has apparently been fixed in 2.4.5.  Just to be sure, though, you
> should temporarily rename your custom target plplot.jar to something else.

I will check that. The output file name is slightly different (it
includes the directory path), but I'm not sure CMake makes that
distinction. I will try renaming.

> How about solving this by creating the jar file every time (by dropping
> the custom command with the OUTPUT plplot.jar and putting the equivalent
> commands in the plplot.jar target)?  My impression is that creating jar
> files is a fast process so the user probably wouldn't even notice the
> extra time this would take.

I'd tried to avoid this for elegance, and because all the "small" tasks
can add up to lead to a significant make time for even the case where
nothing needs updating. You may be right in this instance though that it
is the simplest solution.

> Also, before going too much further with this you should see whether
> cross-directory file DEPENDS actually work.  When I was just starting to
> work with cmake, I could never get that to work, but it may have
> been my inexperience or a bug in the earlier version of cmake.  On the other
> hand, cmake may just not allow cross-directory file DEPENDS in which case
> we are back to the solution I proposed above to create the jar file every
> time you run make.

I also worry about how this might or might not work.

> I have some suggestions on alternatives for creating cross-directory DEPENDS
> file lists, but depending on your response to the questions and comments
> above we may not need them.

I'll try your other suggestions first.

Andrew

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to