MantisBT - CMake
View Issue Details
0015498CMakeCMakepublic2015-04-06 15:572016-06-10 14:31
chenliang xu 
Alex Neundorf 
normalmajoralways
closedmoved 
Apple MacOS X10.4.10
CMake 3.2.1 
 
0015498: Eclipse generator not handle some include path properly
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
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".
No tags attached.
Issue History
2015-04-06 15:57chenliang xuNew Issue
2015-04-07 14:55Alex NeundorfAssigned To => Alex Neundorf
2015-04-07 14:55Alex NeundorfStatusnew => assigned
2016-06-10 14:29Kitware RobotNote Added: 0042753
2016-06-10 14:29Kitware RobotStatusassigned => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042753)
Kitware Robot   
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.