Re: [CMake] How to insert environment variable in INCLUDE_DIRECTORIES

2009-04-24 Thread Peterson, Isaac F.
I've tried all sorts of different combinations of slashes and quotes without 
success.

Does anyone know how to tell cmake NOT to prepend the ..\..\ProjName in front 
of the INCLUDE_DIRECTORIES folder list?

If I put C:/folder, it does not prepend the relative path.  How does cmake 
decide which to prepend and which not to?


- Original Message -
From: Tyler Roscoe 
To: Peterson, Isaac F.
Cc: cmake@cmake.org 
Sent: Tue Apr 21 23:53:35 2009
Subject: Re: [CMake] How to insert environment variable in INCLUDE_DIRECTORIES

On Tue, Apr 21, 2009 at 08:08:34PM -0500, Peterson, Isaac F. wrote:
> I'd like to do the following
> 
> INCLUDE_DIRECTORIES(
>include
>some_local_folder/include
>$(MY_PATH)/some_library/include
> )
> 
> Which would generate the following includes in VS:
> 
> ..\include
> ..\some_local_folder\include
> $(MY_PATH)\some_library\include

Did you try getting creative with quotes and/or backslashes? Something
like \$\(MY_PATH\) might get the job done.

tyler
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[CMake] How to insert environment variable in INCLUDE_DIRECTORIES

2009-04-21 Thread Peterson, Isaac F.
I'm using Cmake 2.6 to generate Visual Studio 7 .NET 2003 projects.  Due
to a Windows limitation of 200 characters per directory path, I need to
put an environment variable into the project settings include path.

I'd like to do the following

INCLUDE_DIRECTORIES(
   include
   some_local_folder/include
   $(MY_PATH)/some_library/include
)

Which would generate the following includes in VS:

..\include
..\some_local_folder\include
$(MY_PATH)\some_library\include

I don't want Cmake to expand MY_VAR, or to prepend it will the ..\  I
tried using the SYSTEM parameter, but that didn't change anything.  I
also tried reading and searching the documentation as well, but couldn't
find much about the INCLUDE_DIRECTORIES function.

Many Thanks!
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake