Changing Project Root has no effect

Hello,

I just downloaded the lastest release and I'm having an issue with the project root.

I checked out the project from my lab's gitlab repository through CLion.
My main CMakeLists.txt file is in <topdir>/Code, so the initial build cannot find it.  I have changed the Project root directory to the correct directory, and try to refresh the build I get the same error message. When I double check that it was changed by trying to change the root directory again, it is indeed set to the Code sub dir.

Is this a bug, or am I mising something?

5 comments
Comment actions Permalink

Hi Jameson,

Thanks for reporting, I've created an issue in our tracker:
https://youtrack.jetbrains.com/issue/CPP-2905#
Feel free to comment or upvote.
Follow to get the updates.

As a workaround we suggest you to close your project and open your CMakeLists.txt manually. Sorry for the inconvenience.

0
Comment actions Permalink

No problem.  Im already doing that.  Just figured I'd ask, and fill out a bug report if needed.  Thanks!

0
Comment actions Permalink

Any update on this bug?

--Jameson

0
Comment actions Permalink

This workaround did not work for me, but I was able to manually edit

.idea/misc.xml
to set the project root:
<component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$/cmake_and_source_dir" />
Upon closing/reopening clion, it found the CMakeLists.txt file.
0
Comment actions Permalink

After so many years, it's still not fixed.

0

Please sign in to leave a comment.