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

Cmake additional defines

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes