[cmake-developers] [CMake 0013358]: Error importing generated Eclipse project with LIBRARY_OUTPUT_PATH set to ${CMAKE_CURRENT_BINARY_DIR}

Mantis Bug Tracker mantis at public.kitware.com
Thu Jun 28 05:41:45 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=13358 
====================================================================== 
Reported By:                muhkuh
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13358
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-06-28 05:41 EDT
Last Modified:              2012-06-28 05:41 EDT
====================================================================== 
Summary:                    Error importing generated Eclipse project with
LIBRARY_OUTPUT_PATH set to ${CMAKE_CURRENT_BINARY_DIR}
Description: 
Setting LIBRARY_OUTPUT_PATH to the current binary directory in a CMakeLists.txt
and using it with the "Eclipse CDT4 - MinGW Makefiles" generator creates an
Eclipse project that causes an error when being imported into an eclipse
workspace.



Steps to Reproduce: 
1. Create CMakeLists.txt containing these two lines:
SET (LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})
PROJECT ( Test )

2. Use the "Eclipse CDT4 - MinGW Makefiles" generator of cmake to create an
Eclipse project. It doesn't matter if an in source or out of source build is
done. For example CMakeLists.txt can reside in C:\TestProject\src and the
Eclipse project is created at C:\TestProject\build.

3. Import this project into an eclipse workspace.
An error message appears:
"Error processing changed links in project description file."
"Cannot create a link to C:\TestProject\build because it overlaps the locations
of the project that contains the linked resource."


Additional Information: 
After removing the line that sets LIBRARY_OUTPUT_PATH the generated project can
be imported without errors. 

Fortunately eclipse imports the generated project despite of the error message.
It's just quite annoying.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-06-28 05:41 muhkuh         New Issue                                    
======================================================================




More information about the cmake-developers mailing list