[CMake] howto disable debug and release folders for MSVC

Gerhard Gappmeier gerhard.gappmeier at ascolab.com
Thu Feb 14 08:51:27 EST 2008


Hi

Is it possible to disable the generation of Debug/ and Release/ folders 
for the MSVC Generator?

My app builds into a defined folder structure
/builddir/bin/MyApp
/builddir/bin/plugins/MyPlugin1
/builddir/bin/plugins/MyPlugin2

This works perfectly on linux and windows commandline with nmake.
But we also have Windows developers which want to use Visual Studio projects.
When using the Visual Studio Generator it produces a structure like this.

/builddir/bin/Debug/MyApp
/builddir/bin/Release/MyApp
/builddir/bin/plugins/Debug/MyPlugin1
/builddir/bin/plugins/Release/MyPlugin1
/builddir/bin/plugins/Debug/MyPlugin2
/builddir/bin/plugins/Release/MyPlugin2

Normally the app searches its plugins in AppPath/plugins.
But with this structure it would have to search in AppPath/../plugins/{Debug|
Release}.
So the app cannot find the plugins.

I'm using out-source builds where I have different build folders for different 
configurations anyway so generating Debug/Release folders for each subproject 
is unnecessary.

thanks

-- 
   _____
  / ___/             There are only 10 types of people in the world.
 / / ___ ____  ___  ___  __ __  Those who understand binary
 \ \_\ // _ < / _ |/ _ |/ // /  and those who don't.
  \___/ \__^// __// __/ \_, /
            /_/  /_/   /___/
                       


More information about the CMake mailing list