[cmake-developers] [CMake 0013189]: [Eclipse CDT] The [Targets] virtual directory contains all sources files which make Eclipse lost
Mantis Bug Tracker
mantis at public.kitware.com
Fri May 4 06:04:13 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13189
======================================================================
Reported By: Eric Beuque
Assigned To:
======================================================================
Project: CMake
Issue ID: 13189
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-05-04 06:04 EDT
Last Modified: 2012-05-04 06:04 EDT
======================================================================
Summary: [Eclipse CDT] The [Targets] virtual directory
contains all sources files which make Eclipse lost
Description:
I ran cmake on my project using the following command:
$> cmake -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug
-DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ .
This create a [Targets] directory that contains all sources files already
presents in the eclipse project.
I guess this is the expected output regarding
http://public.kitware.com/Bug/view.php?id=12223.
The project compilation work fine, but the problem is that Eclipse see each file
twice. This has effect that navigation has not the expected behavior.
For example, i open a file in my original source dir (main.cpp). I CTRL+Click on
a token (MyClass::setText function) and it open the virtual file in the related
[Targets] directory. I expect it open the original file in my source dir.
Steps to Reproduce:
- Create a project for Eclipse CDT and run cmake on it.
- CTRL+Click on any token
- It open a file in the [Targets] directory
Additional Information:
I see two solutions:
- I think the best is to keep in [Targets] only file that are not present in the
original sources dir
- Tell Eclipse indexer to not parse the file present in the [Targets] dir, that
are not already present in the original sources dir.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-05-04 06:04 Eric Beuque New Issue
======================================================================
More information about the cmake-developers
mailing list