Environment variables in Visual Studio 2013

c++, environment-variables, visual-c++, visual-studio, visual-studio-2013

Solution

Dev studio won't recognize any environment variables that have been changed since it was started, so if you change one, a restart is required (of Dev studio, not the computer).

https://superuser.com/questions/107521/why-are-changes-to-my-path-not-being-recognised

Problem

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`

Original source