[Cmake] Problems with LatestRelease

Brad King brad.king at kitware.com
Fri Jul 19 10:58:15 EDT 2002


Bill,

> The following problem appeared after the upgrade. It seems that if a
> variable, say foo, is not defined, then its substitution is ${foo}. I
> believe that in the prior release, no substitution was done and nothing
> was output.

Are you saying that previously "${foo}" became "", and now "${foo}" is
left untouched when foo is not defined?  I'm pretty sure that the latter
has always been the case.  We are currently considering changing this
behavior to the former, though.

> Here's the example from FindFLTK.cmake...
>
> SET( FLTK_LIBRARY ${FLTK_BASE_LIBRARY} ${FLTK_GL_LIBRARY} ${FLTK_FORMS_LIBRARY} )
>
> There is logic on the cmake file to set FLTK_GL_LIBRARY and
> FLTK_FORMS_LIBRARY only under certain conditions. Otherwise they are
> never set. The CMakeCache.txt file reports ${FLTK_GL_LIBRARY} and
> ${FLTK_FORMS_LIBRARY} when they are referenced.

I just ran CMake on ITK with USE_FLTK set to ON, but no installation of
FLTK.  The CMakeCache.txt contains only NOTFOUND entries for these
libraries.  What is the actual problem you're having (or at least what
symptom are you seeing)?

-Brad





More information about the CMake mailing list