Environment variables in Visual Studio 2013

Viewed 23415

I'm trying to set my project include to the path %OPENCV_246%\..\..\include

This resolves to the path F:\dev\opencv_246\build\include

However, when setting the project includes, that path will not resolve and as a result the included headers break.

I've tried both %OPENCV_246%\..\..\include and $(OPENCV_246)\..\..\include with no luck.

Using the path directly fixes my includes, but I'd like to have a better way of managing the path through environment variables.

In the screenshot I've added both for clarity, If anyone could point out the step I'm missing here I'd appreciate it.

EDIT: Variable OPENCV_246 contains value F:\dev\opencv_246\build\x86\vc11

screenshot

2 Answers
Related