On Thu, Apr 21, 2011 at 7:16 AM, Robert Osfield <[email protected]>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.
>
> So the reason that this isn't enabled by default from CMake directly is
because there's no way of controlling what visual studio edition opens a
given sln file, since they're otherwise compatible. (Conceivably if someone
had generated the sln with the full version, then uninstalled it and
installed express, this could not be detectable ahead of time.)  What I've
seen is generally something like this:

if(MSVC)
option(BUILD_WITH_PROJECT_FOLDERS
"Use project folders in build system - not compatible with Visual C++
Express editions!"
OFF)
else()
set(BUILD_WITH_PROJECT_FOLDERS ON)
endif()

set_property(GLOBAL PROPERTY USE_FOLDERS ${BUILD_WITH_PROJECT_FOLDERS})

This way the option is available for more serious developers who know they
have a capable VS version and want the additional IDE functionality, without
causing warnings by default.

Ryan
-- 
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