Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QTCreator doesn't parse CMake defined ifdef's
Forum Updated to NodeBB v4.3 + New Features

QTCreator doesn't parse CMake defined ifdef's

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 2 Posters 3.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SyRenity
    wrote on 8 Apr 2012, 19:54 last edited by
    #1

    Hi.

    I'm working on a project which has some of it's defined defined in CMakelists as definitions.

    This causes the files inside the defines not be parsed by QTC, therefore any advanced functionality does not work.

    Any idea how to make it recognize the define?

    P.S.:
    Seems this a known issue:
    https://bugreports.qt-project.org/browse/QTCREATORBUG-3922

    Any work-around other then patching CMake or QTC?

    Thanks in advance!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SyRenity
      wrote on 9 Apr 2012, 18:10 last edited by
      #2

      Any idea?

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on 10 Apr 2012, 08:43 last edited by
        #3

        You could convert your code to qmake which is better supported or improve the CMake parser.

        Note that it is enough to have a skeleton qmake project that Creator can parse and then continue to use cmake for the actual building by changing the build configuration.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SyRenity
          wrote on 10 Apr 2012, 08:53 last edited by
          #4

          Hi.

          Any tools to convert the cmake to qmake?

          Thanks.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tobias.hunger
            wrote on 10 Apr 2012, 08:55 last edited by
            #5

            No, but there is always "qmake -project" which will examine the files in your directory and produce a skeleton .pro-file.

            1 Reply Last reply
            0

            1/5

            8 Apr 2012, 19:54

            • Login

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved