James Bigler wrote:
> Message: 8
> Date: Tue, 05 Dec 2006 00:48:31 -0800
> From: "Brandon J. Van Every" <[EMAIL PROTECTED]>
> Subject: Re: [CMake] Deleting a variable
> To: cmake <[email protected]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> James Bigler wrote:
> > >
> > > I want the variable to disappear from the list when running ccmake.
> > > This didn't seem to do anything.
>
> How about SET(myvar CACHE INTERNAL "Don't show this")
> See the docs for SET.

This "hides" it (which I could live with), but when I enable the feature that selectively calls this code, FIND_PROGRAM doesn't run again and "myvar" is junk.

Have you tried

FIND_PROGRAM(myvar ...)
IF(myfeature)
 SET(myvar CACHE INTERNAL "Don't show this")
ENDIF(myfeature)

Haven't tried it myself, but maybe it can change the status of a cache variable from visible to internal.



Cheers,
Brandon Van Every

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to