[CMake] Determine Installer Build Configuration in Visual Studio

John Drescher drescherjm at gmail.com
Thu Jun 9 17:02:05 EDT 2011


> I've managed to get an NSIS project up and running in VIsual Studio with
> CPack, but I can't figure out how to determine which configuration type is
> being built.  Is it possible to write up a CMakeLists that will run through
> different conditionals based off of the Build Configuration Type selected in
> Visual Studio?  If a user selects a Debug build I'd like to be able to tell
> the installer to be built with the Debug libraries instead of the Release.
>

That is what it does. When debug is selected in Visual Studio and you
build the PACKAGE project it will build this using debug libs.

John


More information about the CMake mailing list