[cmake-developers] [CMake 0015498]: Eclipse generator not handle some include path properly
Mantis Bug Tracker
mantis at public.kitware.com
Mon Apr 6 15:57:24 EDT 2015
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15498
======================================================================
Reported By: chenliang xu
Assigned To:
======================================================================
Project: CMake
Issue ID: 15498
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-04-06 15:57 EDT
Last Modified: 2015-04-06 15:57 EDT
======================================================================
Summary: Eclipse generator not handle some include path
properly
Description:
Any path added by command include_directories should be included as "inc" type
pathentry in .cproject file. It doesn't work as expected for path
/Library/Frameworks/R.famework/Versions/3.1/Resources/library/Rcpp/include
Steps to Reproduce:
Create CMakeLists.txt with following content
##############################
cmake_minimum_required(VERSION 3.2)
project(Foo LANGUAGES CXX)
include_directories(BEFORE /Library/Frameworks/bar)
include_directories(BEFORE
/Library/Frameworks/R.framework/Versions/3.1/Resources/library/Rcpp/include)
add_library(foo SHARED foo.cpp)
##############################
Then run
cmake -G "Eclipse CDT4 - Ninja" .
grep '"inc"' .cproject
The output is
<pathentry include="/Library/Frameworks" kind="inc" path="" system="true"/>
<pathentry include="/Library/Frameworks/bar" kind="inc" path="" system="true"/>
<pathentry
include="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1"
kind="inc" path="" system="true"/>
<pathentry include="/usr/local/include" kind="inc" path="" system="true"/>
<pathentry
include="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include"
kind="inc" path="" system="true"/>
<pathentry
include="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include"
kind="inc" path="" system="true"/>
<pathentry include="/usr/include" kind="inc" path="" system="true"/>
<pathentry include="/System/Library/Frameworks" kind="inc" path=""
system="true"/>
Note the first entry is chopped incorrectly before word "R.framework".
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-04-06 15:57 chenliang xu New Issue
======================================================================
More information about the cmake-developers
mailing list