Eclipse [Source directory] virtual link always points to C: even when project is on D:
CMake version 3.10.2
Operating system: Windows 10 64-bit
Compiler: Visual Studio 2017 Express with Ninja
IDE: Eclipse Oxygen.2 Release (4.7.2) Build id: 20171218-0600
Steps to reproduce:
- Make project directory on D: drive and make simple CMakeLists.txt
- Generate Eclipse CDT project with following command
cmake -G"Eclipse CDT4 - Ninja" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_ECLIPSE_VERSION=4.7 -DCMAKE_ECLIPSE_MAKE_ARGUMENTS=-j8 ..\project
- Import project to Eclipse with Import -> Existing Projects into Workspace
Now take properties of [Source directory] virtual link and see that the Location field says C:\projects - (does not exist)
.
If you manually change this to point to D:\projects
it will work normally. After this if you change any CMakeLists.txt it will cause the project to be recreated and the virtual link will again point to C:\projects - (does not exist)
.