Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-14792

CMake: CXX_FLAGS are not parsed correctly with whitespaces

    XMLWordPrintable

Details

    Description

      QtCreator does not recognize any class/method if the header includes other headers due to some defines.

      I added a cmake example project that can be imported into QtCreator. If you look into main.cpp you will see "Dummy tmp" and "tmp.getFoo()".

      QtCreator cannot follow that symbols because it doesn't know of defined "USE_DESKTOP" as it will be passed to the compiler.

      So QtCreator needs to grab that information from cmake files.

      $ cat CMakeFiles/Test.dir/flags.make
      
      # CMAKE generated file: DO NOT EDIT!
      # Generated by "Unix Makefiles" Generator, CMake Version 3.2
      
      # compile CXX with /usr/bin/c++
      CXX_FLAGS =   -D USE_DESKTOP
      
      CXX_DEFINES = 
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dt Daniel Teske
            misery André Klitzing
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes