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

Cmake additional defines

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 2.1.0
    • C/C++/Obj-C++ Support
    • None
    • Windows, Linux

    Description

      If inside the CMake project there are some c++ defines added with ADD_DEFINITIONS (-D_LINUX for example), the C++ parser ignores them. If the project uses these defines to make some declarations, the entire project has problems with auto completion, since there surely will be compilation errors. The project of course will compile correctly when building it.

      A workaround would be manually setting the additional defines for the C++ parser in the project options.

      Attachments

        Issue Links

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

          Activity

            People

              dt Daniel Teske
              qbprog Thomas
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes