[CMake] Adding program arguments for Debug configuration

John Drescher drescherjm at gmail.com
Sun May 17 17:48:20 EDT 2009


On Sun, May 17, 2009 at 7:42 AM, Alexandru Duţu <alex.dutu at gmail.com> wrote:
> Hello,
>
> I am new to CMake, and I've been searching the web for a solution to this
> problem also CMake wiki and I found nothing concludent.
> I am using Windows XP SP3 and Visual Studio 2008.
>
> I am trying to include program arguments in debug configuration, without
> arguments I can't debug, normally in VS this is done by going to
> Project/Settings/Debugging/Command Arguments. If I am using a CMake for
> build configuration, by setting the arguments from VS it has no effect,

I do this almost every single day to debug under Visual Studio for my
CMake projects and it works fine. I mean right click on the main
executable click properties and add the debug arguments. Visual studio
will keep these as long as you do not wipe the build folder.

John


More information about the CMake mailing list