QtCreator 2.5 doesn't remember CMake parameters (like debugging flag) between runs



  • I'm simply setting up a project to have a release and debug buld. I have everything working perfectly, but in order to build the project with debugging flags enabled, I have to add the cmake debugging flag (-DCMAKE_BUILD_TYPE=Debug). The only way that I can figure out to have this parameter passed to cmake is to add it as an additional argument. Unfortunately QtCreator doesn't remember the arguments for a given build configuration, so I have to add this in every single time I run cmake. Am I doing this wrong? Is there a way to add this as part of the build configuration so that I don't have to retype the parameter every time?



  • I was looking for a fix for this. Any updates?



  • Hello,
    I have same problems.

    I try to compile log4cpp using QTCreator, in debug and release mode, but whenever I need to run cmake, I should remember to pass
    -DCMAKE_BUILD_TYPE=Debug



  • if you right click on the project, you can click on "Run CMake". It does conserve the parameters :)



  • Up!
    any solutions for this ?
    could'nt find a way to do it yet..



  • Up!
    any solutions for this ?
    could'nt find a way to do it yet..


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.