Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    QMAKE and Visual Studio Variables

    Tools
    3
    4
    2488
    Loading More Posts
    • 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
      wamo last edited by

      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 Reply Quote 0
      • W
        wamo last edited by

        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 Reply Quote 0
        • T
          tobias.hunger last edited by

          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 Reply Quote 0
          • K
            koahnig last edited by

            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 Reply Quote 0
            • First post
              Last post