Hi,

here's my problem. I work in Windows 7 with VS2008. I need to include a 3rd party library to my qt4 project. The path to the library contains spaces so i have to enclose the full path in quotes. Usually the following line in .pro file would do the job:

LIBS += $$quote(c:\\path to the lib\mylib.lib)

However, i want to use an environment variable to specify the path. And if i change the above line to:

LIBS += $$quote($(MY_VAR)\mylib.lib)

in hope of seeing "$(MY_VAR)\mylib.lib" in the project settings, but instead i see just $(MY_VAR)\mylib.lib (without quotes) which, naturally, messes up the linker.

Does anyone know how i can force the quotes around my lib path?

Thanks.