How to force stop cmake building

here is my old quesiton https://intellij-support.jetbrains.com/hc/en-us/community/posts/206543499-How-to-run-cmake-with-clion-jar,

I try to force stop cmake building, and I find a good solution:

ToolWindowImpl tw = ToolWindowManagerImpl.getInstance(pj).getToolWindow("Messages")
if (tw) {
ContentManagerImpl cm = tw.getContentManager()
cm.removeAllContents(true)
}

now, it can stop cmake building, but it will raise dialog first

so, how to skip this dialog and kill cmake building directly, cmake relative jar show "compiled code", so I can't get idea from source

Please sign in to leave a comment.