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. QMAKE and Visual Studio Variables

QMAKE and Visual Studio Variables

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 3 Posters 2.8k Views
  • 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.
  • W Offline
    W Offline
    wamo
    wrote on last edited by
    #1

    Hello,

    i am having trouble to use visual studio variables like this:

    @
    ACT_PROJECTNAME = $(ProjectName)
    message($$ACT_PROJECTNAME)@

    The output is empty.

    1 Reply Last reply
    0
    • W Offline
      W Offline
      wamo
      wrote on last edited by
      #2

      It seems to be a general problem to output something like this "$()" and it does not matter what is inside the brackets.

      Unfortnually Visual Studio primarily works with such Macros like: $(ProjectName),$(IntDir),$(OutDir).

      In some cases it does work and the correct variables are set but not in all cases... their output is buggy empty. :( Thats sad.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        I am no qmake expert but I would be surprised if qmake understood any visual studio variables.

        if some work I would assume that is by chance, not by design:-)

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          Are you using qmake through vsaddin ?
          If you are considering qmake and vs as completely independent, it will not work for sure.
          I am not an expert of vsaddin but merely a user of it. vsaddin builds the bridge between both, the vs and the qt world. Maybe if vsaddin is involved some of the settings of vs are transferred to be used by Qt. However, the general goal is probably to use Qt through the vs mechanims or to use through qmake. The consequence would be to stay better in one or the "world".

          Is there a particular reason that you want mix both?

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0

          • Login

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