When setting up SDK, just return if there's no installed Visual Studio
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Tue, 21 Jul 2009 14:32:00 +0000 (14:32 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Tue, 21 Jul 2009 14:32:00 +0000 (14:32 +0000)
of the specified version.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4299 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Tool/MSCommon/sdk.py

index eb7ed382a2917f9f4aef55a118baf34c42abe1c9..5491a8731ddfee92ab2cdfb630302b59f5b6fe57 100644 (file)
@@ -287,6 +287,8 @@ def mssdk_setup_env(env):
         import vs
         msvs = vs.get_vs_by_version(msvs_version)
         debug('msvs is :%s'%msvs)
+        if not msvs:
+            return
         sdk_version = msvs.sdk_version
         if not sdk_version:
             return