[CMake] Using absolute values in include_directories directive

Felipe Sodre dos Santos felipe.sodre at totvs.com.br
Wed Mar 3 13:44:18 EST 2010


Hello all.

Im trying to set an include directory which is actually an environment variable inside VC++ , $(QTDIR), and thus I tried the following:

...

include_directories(
  $(QTDIR)/include
)

...


It comes up that in the resulting SLN file, it translates that directive to C:/basedir/$(QTDIR)/include, where basedir is the root directory for the project. However, that wouldn't work since $(QTDIR) is something like "C:\Qt".

Is there a way to make CMake to not put "C:/basedir/" before $(QTDIR) ?

Thanks in advance

Felipe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100303/0ef59dd8/attachment-0001.htm>


More information about the CMake mailing list