<font class="Apple-style-span" face="arial, helvetica, sans-serif">I think it is my bad. Andrew, can you remove the GROUPS Rendering from <span class="Apple-style-span" style="white-space:nowrap">GUISupport/MFC/module.cmake and see if that clears up your problem?</span></font><div>
<font class="Apple-style-span" face="'Arial Unicode MS', Arial, sans-serif"><span class="Apple-style-span" style="font-size:21px;white-space:nowrap"><br></span></font></div><div><font class="Apple-style-span" face="'Arial Unicode MS', Arial, sans-serif"><span class="Apple-style-span" style="font-size:21px;white-space:nowrap">Bill<br>
</span></font><div><br><br><div class="gmail_quote">On Sat, Jul 21, 2012 at 7:06 AM, David Cole <span dir="ltr"><<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If necessary, MFC may be tested for via a try_compile. We already have<br>
code that does this (after doing some quicker checks first, to<br>
short-circuit the try_compile if possible) in the CMake test suite,<br>
where we have a test that relies on MFC.<br>
<br>
It's about 100 lines of CMakeLists code that starts here (this is the<br>
line in the v2.8.8 release):<br>
<br>
  <a href="http://cmake.org/gitweb?p=cmake.git;a=blob;f=Tests/CMakeLists.txt;h=c0b7cd6175dd59de710af30256a749647f758bff;hb=6218aba37ad9990304f91bf6c27e014fbf8ad684#l1246" target="_blank">http://cmake.org/gitweb?p=cmake.git;a=blob;f=Tests/CMakeLists.txt;h=c0b7cd6175dd59de710af30256a749647f758bff;hb=6218aba37ad9990304f91bf6c27e014fbf8ad684#l1246</a><br>

<br>
Of course, even if you do test for it, and it's available, you may<br>
want to provide the capability of turning it off independently. Maybe<br>
it should be in its own little module even?<br>
<br>
<br>
HTH,<br>
David<br>
<div><div class="h5"><br>
<br>
On Sat, Jul 21, 2012 at 2:32 AM, Andrew Maclean<br>
<<a href="mailto:andrew.amaclean@gmail.com">andrew.amaclean@gmail.com</a>> wrote:<br>
> Hi All,<br>
><br>
> I have just built the latest clone of VTK 6 and it seems that MFC is being<br>
> included by default. Is there any reason for this or has it just been<br>
> inadvertently picked up in the dependency graph? The problem here is that<br>
> express editions of VS2010 do not contain afxwin.h hence the build will fail<br>
> when vtkMFCWindow.h is included in a build.<br>
><br>
> The problem is in:<br>
> Group Rendering modules:<br>
> vtkGeovisCore;vtkGUISupportMFC;vtkInteractionImage;vtkInteractionStyle;vtkInteractionWidgets;vtkRenderingAnnotation;vtkRenderingContext2D;vtkRenderingCore;vtkRenderingFreeType;vtkRenderingFreeTypeOpenGL;vtkRenderingHybridOpenGL;vtkRenderingImage;vtkRenderingLabel;vtkRenderingLOD;vtkRenderingOpenGL;vtkRenderingVolume;vtkRenderingVolumeOpenGL;vtkViewsContext2D;vtkViewsCore;vtkViewsGeovis;vtkViewsInfovis<br>

> ....<br>
>  * vtkGUISupportMFC, needed by VTK_Group_Rendering.<br>
> ....<br>
> * vtkInteractionStyle, needed by 22 modules:<br>
>         VTK_Group_Rendering<br>
>         vtkDomainsChemistry-Test-Cxx<br>
>         vtkFiltersExtraction-Test-Cxx<br>
>         vtkFiltersExtraction-Test-Tcl<br>
>         vtkFiltersHyperTree-Test-Cxx<br>
>         vtkGUISupportMFC<br>
>         vtkGUISupportQt<br>
> ...<br>
><br>
> I definitely have not specified MFC in any of the CMake options.<br>
><br>
><br>
> Regards<br>
>    Andrew<br>
><br>
> --<br>
> ___________________________________________<br>
> Andrew J. P. Maclean<br>
><br>
> ___________________________________________<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
><br>
><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br><br>
</div></div>