/usr/src/googletest folder get's included in every project I open, how do I remove it?

已回答

See the image to understand what I mean. I never actively included this folder, it just shows up and is quite annoying. How do I remove not the folder, but Clion showing me the folder?

1

Hello!

Have you checked the CMakeLists.txt file from your project? Maybe this folder is included there.

0

It does not get included in my CMakeList.txt, also it happens for every project and it seems like it is some strange postprocessing hook from clion.

When opening a project for the first time, I only see the folder I opened, but then 1-2s later the folder in the example above spinnaker_camera_driver get's duplicated and put once inside itself, right next to that /usr/src/googletest folder. It is really strange.

0

>it happens for every project

Please close all your projects (File | Close Project), on the Welcome screen choose New Project, choose C++ Executable, click Create. Do you observe this strange behavior for a newly created "Hello, World!" project?

Close the project and open it. Is the /usr/src/googletest folder added?

0

Good idea, it help me get further with troubleshooting this, but I'm stuck again. The folder get's included when calling

find_package(catkin REQUIRED COMPONENTS )

, but does not happen with the default project

Now I tried to look trough the cmake file of catkin, but it is massive and pulls in many dependencies. Is there a variable or a place that clion checks to determine what folders should be shown in the project tab? Because the folder is in no fashion present in the project folder, not as symlink or as copy.

0

It seems catkin somehow adds gtest to the project sources. Unfortunately, I don't know how. You can try removing gtest from your system if you don't use it. Or try to find out a way to disable gtest in catkin projects.

0

But what are those sources we are talking about? I assume it does not interact directly with clion, but with some cmake construct, which clion reads. If you could tell me what clion is reading, I could better figure out where catkin is writing to it and disable it. What does clion use to determine what it shows in the project tab?

0

CLion takes the information from the CMake files generated during the project loading (mostly Makefiles generated by CMake). The project structure is described in the CMakeLists.txt.

0

请先登录再写评论。