I googled this question, these’s no easy way. Cmake does not provide any variable or property to modify visual studio intermediate dierectory. So I modified cmake source code to implement the feature.I’m using VS2005, and I test the modification under VS2005. It just work.
NOTE: New property
VS_INTERMEDIATE_DIRECTORY_(CONFIG) can be used to change VS intermediate directory.
VS_INTERMEDIATE_DIRECTORY global variable is not supported.