Hi

Even I'm facing the same problem. I want QtCreator to allow me to use
environmental variables in Build and Run settings. Although I don't use
Cmake based project but since I don't use the standard qmake based project I
need to specify build and run settings myself. Also I think we would like
these to be stored in project.pro instead of project.pro.user. I created a
bug(1999) also for these changes to be implemented. Although the bug was
accepted but there has be no responses since then. Can you guys vote for
that issue to be fixed if you find it meaningful ?

Thanks
Anshul

On Thu, Sep 16, 2010 at 5:21 AM, Theo de Vries <[email protected]>wrote:

> Andre,
> thanks once more for your perseverance.
> Unfortunately, also this one does not work. The point is that Qt
> Creator is sitting in between. It takes the string that I enter either
> in the projects view or in the .user file in order to determine the
> location for the CMake output.
> I would have expected that a relative path being entered is relative
> to the one that you can enter into the Options>Projects>directory
> field, however, it is not. I work on Linux, and here a relative path
> is determined from the ~/Documents directory. For the run settings,
> its even more unclear; I have not been able to enter a relative path
> that works.
> I personally think it is a bug. But more suggestions are welcome!
>
> 2010/9/15 André Pönitz <[email protected]>:
> > On Tuesday 14 September 2010 22:15:20 ext Theo de Vries wrote:
> >> Andre,
> >>
> >> thank you for the answer.
> >> This was what I used to do. However, now I work with a CMake project,
> >> hence, qmake is not called. So the point is: how to get this behavior
> >> in a CMake project??
> >
> > I have no idea as I don't use cmake myself.
> >
> > Google finds for "cmake environment variable"
> >
> >  http://www.cmake.org/pipermail/cmake/2003-September/004313.html
> >
> > as first hit and the response to that question contains
> >
> >    You can reference the special $ENV{} variable to get environment
> >    values like any other CMake variable:
> >    MESSAGE("$ENV{LD_LIBRARY_PATH}")
> >
> > Maybe that would do the trick.
> >
> > Andre'
> > _______________________________________________
> > Qt-creator mailing list
> > [email protected]
> > http://lists.trolltech.com/mailman/listinfo/qt-creator
> >
>
> _______________________________________________
> Qt-creator mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to