View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015498CMakeCMakepublic2015-04-06 15:572016-06-10 14:31
Reporterchenliang xu 
Assigned ToAlex Neundorf 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformApple MacOSOS XOS Version10.4.10
Product VersionCMake 3.2.1 
Target VersionFixed in Version 
Summary0015498: Eclipse generator not handle some include path properly
DescriptionAny 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 ReproduceCreate 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".
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0042753)
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2015-04-06 15:57 chenliang xu New Issue
2015-04-07 14:55 Alex Neundorf Assigned To => Alex Neundorf
2015-04-07 14:55 Alex Neundorf Status new => assigned
2016-06-10 14:29 Kitware Robot Note Added: 0042753
2016-06-10 14:29 Kitware Robot Status assigned => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team