Yeehaw! That fixes my problem. Thanks, Alan.
Jerry

On Mar 7, 2007, at 8:30 PM, Alan W. Irwin wrote:

> On 2007-03-07 18:36-0700 Jerry wrote:
>
>> I actually thought I did the right thing when I installed 5.7.2. But
>> for a sanity check I just re-did everything from scratch with the
>> same results.
>>
>> I made a new directory at /usr/local/plplot_run_ccmake_from_here and
>> cd-ed to it and ran ccmake from there. From ccmake, I specified
>> CMAKE_INSTALL_PREFIX to be /usr/local/plplot-5.7.2.
>
> Sorry about this problem which by coincidence also came up today  
> for libLASi
> (which has a similar install location system).  I have just made a  
> change
> for both projects so this bad human-engineering issue should be  
> eliminated.
>
> The short story is if you start with a clean source tree and  
> initially empty
> (separate) build tree (so no stale files from previous builds are  
> hanging
> around) then cmake or ccmake with the command-line option
> -DCMAKE_INSTALL_PREFIX=whatever always works fine.  However,  
> inconsistencies
> in install locations can occur, if you have a stale cache hanging  
> around or
> if you do not specify the -DCMAKE_INSTALL_PREFIX option when invoking
> ccmake, and you attempt to change CMAKE_INSTALL_PREFIX from the  
> ccmake GUI
> instead.
>
> What happens internally is that the value of CMAKE_INSTALL_PREFIX  
> is cached
> and its also taken as the _default_ value of the install prefix for  
> every
> other install location variable before they are cached as well.   
> Once they
> are cached, then ccmake gives you the opportunity to change them to
> something else, but if you don't specify the -DCMAKE_INSTALL_PREFIX  
> option
> for the ccmake command, then the cached values will all refer to / 
> usr/local,
> and will _all_ have to be changed consistently by the user.
>
> Now we get to the bad human engineering part.  Before I used
> MARK_AS_ADVANCED for all those generated install locations.  Thus,  
> they were
> by default (unless they hit the t option) hidden from ccmake users  
> so they
> could not see when they were inconsistent with what they wanted.   
> So that
> was a nasty trap inadvertently set for the user.  With  
> MARK_AS_ADVANCED
> removed, they are now diplayed in all circumstances, and the users  
> therefore
> have a chance to specify the desired install locations. And, of  
> course, if
> they ever get tired of doing that, they can also avoid the problem
> altogether by specifying the -DCMAKE_INSTALL_PREFIX option for the  
> ccmake
> command.
>
> Sorry, Jerry, you were caught by this (inadvertent) trap, but I  
> hope it is
> all straightened out for you now.
>
> Alan
> __________________________
> Alan W. Irwin


-------------------------------------------------------------------------
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-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to