Robert Bielik skrev 2011-02-21 17:20:
Now next fun stuff. Since not everybody use VS2008 Pro (the express version 
doesn't support solution folders :( ) I need to make this
an option:

OPTION(BUILD_USE_SOLUTION_FOLDERS "Enable grouping of projects in VS" OFF)

SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS BUILD_USE_SOLUTION_FOLDERS)

But this doesn't work!! Whatever I set BUILD_USE_SOLUTION_FOLDERS to, ON or 
OFF, no solution folders are generated, period!! WTF !?

Was a bit fast there, hasn't been my day today...

this works:
OPTION(BUILD_USE_SOLUTION_FOLDERS "Enable grouping of projects in VS" OFF)

IF(BUILD_USE_SOLUTION_FOLDERS)
SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS ON)
ELSEIF(BUILD_USE_SOLUTION_FOLDERS)
SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS OFF)
ENDIF(BUILD_USE_SOLUTION_FOLDERS)

/Rob
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to