[CMake] How to insert environment variable in INCLUDE_DIRECTORIES
Tyler Roscoe
tyler at cryptio.net
Wed Apr 22 00:53:35 EDT 2009
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
More information about the CMake
mailing list