I'm pretty sure that CMAKE_USING_VC_FREE_TOOLS tests for the old case where
you could only get the free compilers through some combination of the
Windows DDK and platform SDK: that is, pre-VC Express.

The MFC test will give a reasonable default, but as I mentioned earlier,
you'd still want to have this configurable since a user could switch between
the full and the express version between configure and build time, and this
would likely otherwise be OK.

Ryan

On Thu, Apr 21, 2011 at 12:10 PM, Chuck Seberino <[email protected]>wrote:

> Robert,
>
> There is a variable in CMake called CMAKE_USING_VC_FREE_TOOLS that is
> _supposed_ work, but I personally haven't had much success with it - it
> didn't report my VC2008Express installation correctly.  What has worked has
> been a compile test for MFC support.  The Microsoft Foundation Classes are
> only available in the non-express versions.  The test looks like this:
>
> TRY_COMPILE(MFC_IS_AVAILABLE
>             "${CMAKE_BINARY_DIR}/try_compile_mfc"
>             try_compile_mfc.c
> )
>
> -- begin try_compile_mfc.c
>
> #include <windows.h>
> #include <atlbase.h>
> int main() { return 0; }
>
> -- end try_compile_mfc.c
>
>
> This will set MFC_IS_AVAILABLE based on the success or failure of compiling
> the code snippet.
>
> Regards,
> Chuck
>
> On Apr 21, 2011, at 5:16 AM, Robert Osfield wrote:
>
> Hi CMake/MS experts:
>
> Laurends wrote:
> On Fri, Apr 15, 2011 at 12:33 PM, Laurens Voerman <[email protected]>
> wrote:
>
> Hi all,
>
> solution folders are not supported by Visual Studio Express, and it wants
> to
>
> let me know with a few message boxes every time I open the project.
> Attached
>
> is a modified CMakeList.txt that makes this an option. It would be nice to
>
> autodetect an express IDE, but I don't know how to do that.
>
>
> Any ideas?  I'd rather not have to have users learn about yet another
> CMake option just fix warnings.  Perhaps this is an issue to through
> out to the rest of the community to see if they can spot a vialbe
> solutio for autodetecting Visual Studio Express.
>
> Cheers,
> Robert.
> _______________________________________________
> osg-submissions mailing list
> [email protected]
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>


-- 
Ryan Pavlik
HCI Graduate Student
Virtual Reality Applications Center
Iowa State University

[email protected]
http://academic.cleardefinition.com
Internal VRAC/HCI Site: http://tinyurl.com/rpavlik
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to