EVERY TIME I OPEN CLION IT ASKS ME TO CONFIGURE SOMETHING
已回答
Hi everyone,
So I really enjoy CLion, & Intellij, but every single time I create a new project (whether it is on my desktop or on one drive) it always either asks me for a cmake txt file or it tells me to edit configurations, or else it will not compile. This goes for both platforms. I am so annoyed by this feature, I am thinking about hanging up the gloves. I love these IDEs so much, but this is unbearable. Please someone out there, help.
请先登录再写评论。
Hello! CLion uses a concept of a project. For now CLion provides code insight features (i.e. code highlighting, refactorings, completion, navigation) for CMake-based projects, Gradle-based projects or projects opened from Compilation Database. That's why CLion asks you for a CMakeLists.txt.
Two questions, when I create a new project, and I add a new cpp source file, it will ask me for a CMakeLists.txt file, but if it is non existent in my directory(at time of creation) how can I go about finding it?
Question 2, is there a way to be able to zoom in with ctrl + scroll up? I was able to do it for PyCharm and IntelliJ, but not for CLion
1. How do you create a new project?
2. Go to File | Settings | Editor | General and check whether Change font size (Zoom) with Ctrl+MouseWheel is enabled
The default build process in CLion is CMake. I haven't found a way to turn it off; however, if you create a mininal CMakeLists.txt that does nothing, it will shut up. Click on the “Configure CMake…” choice in the error line. It will ask you whether you want to choose a CMakeLists or create one. Choose Create one. It will try to preselect project files to include; deselect all of them and click on OK.
In the end result, this should be your CMakeLists.txt file until you wish to modify it for actual use.
cmake_minimum_required(VERSION 3.28)
project(yourProjectName)
set(CMAKE_CXX_STANDARD 11)