<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>Re: [CMake] How to insert environment variable in INCLUDE_DIRECTORIES</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>I've tried all sorts of different combinations of slashes and quotes without success.<BR>
<BR>
Does anyone know how to tell cmake NOT to prepend the ..\..\ProjName in front of the INCLUDE_DIRECTORIES folder list?<BR>
<BR>
If I put C:/folder, it does not prepend the relative path.&nbsp; How does cmake decide which to prepend and which not to?<BR>
<BR>
<BR>
----- Original Message -----<BR>
From: Tyler Roscoe &lt;tyler@cryptio.net&gt;<BR>
To: Peterson, Isaac F.<BR>
Cc: cmake@cmake.org &lt;cmake@cmake.org&gt;<BR>
Sent: Tue Apr 21 23:53:35 2009<BR>
Subject: Re: [CMake] How to insert environment variable in INCLUDE_DIRECTORIES<BR>
<BR>
On Tue, Apr 21, 2009 at 08:08:34PM -0500, Peterson, Isaac F. wrote:<BR>
&gt; I'd like to do the following<BR>
&gt;<BR>
&gt; INCLUDE_DIRECTORIES(<BR>
&gt;&nbsp;&nbsp;&nbsp; include<BR>
&gt;&nbsp;&nbsp;&nbsp; some_local_folder/include<BR>
&gt;&nbsp;&nbsp;&nbsp; $(MY_PATH)/some_library/include<BR>
&gt; )<BR>
&gt;<BR>
&gt; Which would generate the following includes in VS:<BR>
&gt;<BR>
&gt; ..\include<BR>
&gt; ..\some_local_folder\include<BR>
&gt; $(MY_PATH)\some_library\include<BR>
<BR>
Did you try getting creative with quotes and/or backslashes? Something<BR>
like \$\(MY_PATH\) might get the job done.<BR>
<BR>
tyler<BR>
</FONT>
</P>

</BODY>
</HTML>