Docker toolchain moving project root
Hi, currently trying to use the docker toolchain with clion for a project that requires a different OS then my host machine.
Its a pretty standard CMake project, its root dir is here:
~/ws/myProject
If I open the project with the default toolchain it scans the project fine, but when I open it with the docker toolchain it moves the root of the project up a level to just ~/ws
Obviously my workspace folder has lots of other projects in it, so CLion takes forever to index all the files in it, and the file navigation is a pain.
I've tried setting the CMake project root to ~/ws/myProject, but that doesn't seem to affect this. Has anyone run into this issue before? Know a fix for it?
The work around Ive found is I just made a /myProject, and Clion gives me an error saying it refuses to map root, so it keeps the myProject folder as the base, but obviously I don't really want to keep the project sources in a folder just above root
请先登录再写评论。
Hello!
This is very strange. Have you configured any path mappings anywhere in your Docker toolchain?
Found the issue, the CMakeLists had some include_directories() that for some reason (probably me mis-understanding something years ago :) ) included ‘..’ along with the intended directories, that must've been telling cmake to move the root, which overriding via clion project settings wasn't helping