<!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. How does cmake decide which to prepend and which not to?<BR>
<BR>
<BR>
----- Original Message -----<BR>
From: Tyler Roscoe <tyler@cryptio.net><BR>
To: Peterson, Isaac F.<BR>
Cc: cmake@cmake.org <cmake@cmake.org><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>
> I'd like to do the following<BR>
><BR>
> INCLUDE_DIRECTORIES(<BR>
> include<BR>
> some_local_folder/include<BR>
> $(MY_PATH)/some_library/include<BR>
> )<BR>
><BR>
> Which would generate the following includes in VS:<BR>
><BR>
> ..\include<BR>
> ..\some_local_folder\include<BR>
> $(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>