[CMake] Determine Installer Build Configuration in Visual Studio

Jason Gochanour jrgochan at lanl.gov
Thu Jun 9 16:54:28 EDT 2011


Hello,

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.

-Jason


More information about the CMake mailing list