[Insight-developers] CMake with ITK, FLTK, VTK on Mac OS.X

Wilson Chang wmcst6+@pitt.edu
Sat, 21 Dec 2002 00:20:02 -0500


Brad,

Hi, we are building VTK with VTK_USE_CARBON, and our projects still 
require us to add a "-framework Carbon" explicitly in the 
CMAKE_CXX_FLAGS.  I have also been getting a CMake error while 
configuring whenever I try to make VTK on Mac OS 10.2.3:
"failed to compile VTK extensions to CMake"
Even with this error, CMake still generates a makefile.

wilson


On Friday, Dec 20, 2002, at 16:46 US/Eastern, Brad King wrote:

> Wilson,
>
>> specific flag?  This option when turned on could add the following
>> compiler flag:
>>
>> -framework Carbon
>>
>> and the following linker flag:
>>
>> -flat_namespace
>>
>> We were wondering if CMake could automatically add this option if it
>> detects that it is running under Mac OS.X, or some other way of being
>> more automatic.
>
> I just spent some time looking at this problem.  If VTK_USE_CARBON is
> turned on when you build VTK, your project should automatically link to
> "-framework Carbon" when you link to vtkRendering.  If this is not the
> case, please let me know.
>
> -Brad
>