On Sat, Feb 19, 2011 at 11:22 AM, Robert Bielik <robert.bie...@xponaut.se> wrote: > Hi all, > > Running CMake 2.8.2 and generating build files for VS 9 (2008), I'm trying > to "tidy up" the workspace by putting projects in solution folders. > So I do: > > add_library(MyLib .....) > > set_target_properties(MyLib > PROPERTIES > FOLDER "Libraries"); > > add_executable(MyExe .....) > > set_target_properties(MyLib > PROPERTIES > FOLDER "Executables"); > > But nothing happens. All projects are still top level as usual. Ideas ?
You need this at the top of your main CMakeLists.txt #Use solution folders. set_property(GLOBAL PROPERTY USE_FOLDERS ON) John _______________________________________________ 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