[Insight-developers] Trouble turning off fltk

Bill Lorensen wlorens1@nycap.rr.com
Mon, 30 Dec 2002 13:36:46 -0500


Luis,
Thanks.  I suspected something like that. I'll bet you are also right about vtk having the same problem.

I would not delete binary directories.

Bill

At 01:29 PM 12/30/02 -0500, Luis Ibanez wrote:

>Hi Bill,
>
>You are right. "USE_FLTK" only controls if the FindFLTK.cmake
>module is read or not. The rest of the ITK's CMakeLists.txt
>files check for "HAS_FLTK" which is set by FindFLTK.cmake.
>
>I just added a line in the main CMakeLists.txt file
>to disable "HAS_FLTK" whenever "USE_FLTK" is off.
>
>However, if you go directly inside one of the previously
>created directories of applications using FLTK, the old
>Makefiles will be there but the path to fltk component
>will not be set correctly. Any attempt to build these
>directories will fail.
>
>A build from the top level should work fine though.
>
>
>Do we want to remove previously created directories
>when options are disabled ? e.g.
>
>The FltkImageViewer directory on the binary build
>probably should be erased when USE_FLTK is disabled....
>
>--
>
>BTW the exact same problem may be happening with VTK
>since the FindVTK module is conditioned by "USE_VTK",
>but the actual build of VTK dependent directories is
>conditioned to "HAS_VTK".
>
>
>
>   Luis
>
>
>
>
>------------------------------
>
>Bill Lorensen wrote:
>
>>Folks,
>>I had an insight build that had turned on fltk. Later I tried to turn it off, but had to hand edit the internal cache entries to disable it. I think the logic in the cmakelists files is probably flawed.
>>Bill
>>_______________________________________________
>>Insight-developers mailing list
>>Insight-developers@public.kitware.com
>>http://public.kitware.com/mailman/listinfo/insight-developers
>
>