File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -457,10 +457,13 @@ if GetOption( "prefix" ):
457457 installDir = GetOption ( "prefix" )
458458
459459def findVersion ( root , choices ):
460- for c in choices :
461- if ( os .path .exists ( root + c ) ):
462- return root + c
463- raise "can't find a version of [" + root + "] choices: " + choices
460+ if not isinstance (root , list ):
461+ root = [root ]
462+ for r in root :
463+ for c in choices :
464+ if ( os .path .exists ( r + c ) ):
465+ return r + c
466+ raise RuntimeError ("can't find a version of [" + repr (root ) + "] choices: " + repr (choices ))
464467
465468def choosePathExist ( choices , default = None ):
466469 for c in choices :
@@ -592,8 +595,8 @@ elif "win32" == os.sys.platform:
592595 env .Append ( LIBPATH = [ javaHome + "/Lib" ] )
593596 javaLibs += [ "jvm" ];
594597
595- winSDKHome = findVersion ( "C:/Program Files/Microsoft SDKs/Windows/" ,
596- [ "v6.0" , "v6.0a" , "v6.1" ] )
598+ winSDKHome = findVersion ( [ "C:/Program Files/Microsoft SDKs/Windows/" , "C:/Program Files (x86)/Microsoft SDKs/Windows/" ] ,
599+ [ "v6.0" , "v6.0a" , "v6.1" , "v7.0A" ] )
597600
598601 env .Append ( CPPPATH = [ boostDir , "pcre-7.4" , winSDKHome + "/Include" ] )
599602
You can’t perform that action at this time.
0 commit comments