I recently moved from developing with code::blocks to developing with kdevelop. (I got fed up of codeblocks being unstable and not being able to set keyboard shortcuts.)
As I understand it kdevelop uses cmake to control the building of source files... Not really sure why, but okay that's what was decided, so I'll live with it.
I don't really know anything about cmake. I guess it is like make?
What I really want to know is how do I set cmake to use g++ with the flag std=c++11
.
According to this stackoverflow question, I should be able to use list(APPEND CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
- but I think this might work only for make and not cmake...?
Anyone know how to set compiler options in kdevelop? Also could anyone explain why cmake is used, rather than most other IDE's which I have encountered before. I'm guessing there is a good reason for it.