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

Reply via email to