[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 304505] New: Syntax parser cannot find library headers even though project builds correctly
From:       David <daviddoria () gmail ! com>
Date:       2012-08-03 16:25:08
Message-ID: bug-304505-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=304505

            Bug ID: 304505
          Severity: normal
           Version: git master
          Priority: NOR
          Assignee: kdevelop-bugs@kdevelop.org
           Summary: Syntax parser cannot find library headers even though
                    project builds correctly
    Classification: Unclassified
                OS: Linux
          Reporter: daviddoria@gmail.com
          Hardware: Other
            Status: UNCONFIRMED
         Component: Build tools: CMake
           Product: kdevelop

Take for example the ITK library (git clone git://itk.org/ITK.git)

With this code:

#include "itkImage.h"

int main(int, char* [] )
{

  return 0;
}

and this CMakeLists.txt


cmake_minimum_required(VERSION 2.8)

PROJECT(TestITK)

FIND_PACKAGE(ITK REQUIRED ITKCommon)
INCLUDE(${USE_ITK_FILE})

ADD_EXECUTABLE(TestITK TestITK.cxx)
TARGET_LINK_LIBRARIES(TestITK ${ITK_LIBRARIES})

the line:

#include "itkImage.h"

is underlined in red squiggly by the syntax parser, and if you hover over it it
says "included file was not found". However, the project builds correctly, so
apparently the included file WAS found :)

Reproducible: Always

Steps to Reproduce:
1. Include an ITK header
Actual Results:  
Syntax parser underlines the include in red squiggly and says it is not found

Expected Results:  
Syntax parser should find the header.

I would imagine this has more to do with the KDevelop CMake module than the CPP
module, so I marked "Component" as such in this bug report.

-- 
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic