Browse Source

Extended the look-up for Visual Studio to include VS 2013.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/123/head
Dimitar Dobrev 12 years ago
parent
commit
a51983735f
  1. 12
      src/Parser/VSLookup.cpp

12
src/Parser/VSLookup.cpp

@ -199,6 +199,8 @@ static bool getVisualStudioDir(std::string &path) {
} }
// Try the environment. // Try the environment.
const char *vs120comntools = getenv("VS120COMNTOOLS");
const char *vs110comntools = getenv("VS110COMNTOOLS");
const char *vs100comntools = getenv("VS100COMNTOOLS"); const char *vs100comntools = getenv("VS100COMNTOOLS");
const char *vs90comntools = getenv("VS90COMNTOOLS"); const char *vs90comntools = getenv("VS90COMNTOOLS");
const char *vs80comntools = getenv("VS80COMNTOOLS"); const char *vs80comntools = getenv("VS80COMNTOOLS");
@ -206,7 +208,15 @@ static bool getVisualStudioDir(std::string &path) {
// Try to find the version that we were compiled with // Try to find the version that we were compiled with
if(false) {} if(false) {}
#if (_MSC_VER >= 1600) // VC100 #if (_MSC_VER >= 1800) // VC120
else if (vs120comntools) {
vscomntools = vs120comntools;
}
#elif (_MSC_VER == 1700) // VC110
else if (vs110comntools) {
vscomntools = vs110comntools;
}
#elif (_MSC_VER == 1600) // VC100
else if(vs100comntools) { else if(vs100comntools) {
vscomntools = vs100comntools; vscomntools = vs100comntools;
} }

Loading…
Cancel
Save