compiling today's 2.2.x branch and master I get this compilation error:
environment.cppD:\LyXGit\Master\src\support\environment.cpp(73): fatal error C1189: #error: No environment-setting function has been defined. [D:\LyXGit\Master\compile-2015\src\support\support.vcxproj]
regards Uwe