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

<P><FONT SIZE=2 FACE="Arial">I'm using Cmake 2.6 to generate Visual Studio 7 .NET 2003 projects.&nbsp; Due to a Windows limitation of 200 characters per directory path, I need to put an environment variable into the project settings include path.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I'd like to do the following</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">INCLUDE_DIRECTORIES(</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp; include</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp; some_local_folder/include</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp; $(MY_PATH)/some_library/include</FONT>

<BR><FONT SIZE=2 FACE="Arial">)</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Which would generate the following includes in VS:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">..\include</FONT>

<BR><FONT SIZE=2 FACE="Arial">..\some_local_folder\include</FONT>

<BR><FONT SIZE=2 FACE="Arial">$(MY_PATH)\some_library\include</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I don't want Cmake to expand MY_VAR, or to prepend it will the ..\&nbsp; I tried using the SYSTEM parameter, but that didn't change anything.&nbsp; I also tried reading and searching the documentation as well, but couldn't find much about the INCLUDE_DIRECTORIES function.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Many Thanks!</FONT>
</P>

</BODY>
</HTML>