@@ -2450,7 +2450,7 @@ def build(self, owner, variant):
2450
2450
temp = "."
2451
2451
if not (self .subpath == None ):
2452
2452
temp = self .subpath .getContent ()
2453
- if not (os .path .join (self .getPath (owner , variant , None ), temp , "CMakeLists.txt" ).replace ("\\ " , "/" ) in files ):
2453
+ if not (os .path .realpath ( os . path . join (self .getPath (owner , None , None ), temp , "CMakeLists.txt" ) ).replace ("\\ " , "/" ) in files ):
2454
2454
descriptor = open (os .path .join (path , "CMakeLists.txt" ), "w" )
2455
2455
base = path
2456
2456
write (descriptor , "cmake_minimum_required(VERSION 3.12.0 FATAL_ERROR)" )
@@ -2800,7 +2800,7 @@ def buildVariant(self, owner, generator, architecture, arguments, path, installa
2800
2800
temp = "."
2801
2801
if not (self .subpath == None ):
2802
2802
temp = self .subpath .getContent ()
2803
- if not (os .path .join (self .getPath (owner , variant , None ), temp , "CMakeLists.txt" ).replace ("\\ " , "/" ) in files ):
2803
+ if not (os .path .realpath ( os . path . join (self .getPath (owner , None , None ), temp , "CMakeLists.txt" ) ).replace ("\\ " , "/" ) in files ):
2804
2804
result = cmake_configure (generator , architecture , arguments + ["-DCMAKE_BUILD_TYPE=" + variant ], path , os .path .join (path , "build" ).replace ("\\ " , "/" ), installation , None )
2805
2805
else :
2806
2806
result = cmake_configure (generator , architecture , arguments + ["-DCMAKE_BUILD_TYPE=" + variant ], os .path .join (path , self .subpath .getContent ()), os .path .join (path , "build" ).replace ("\\ " , "/" ), installation , None )
@@ -2892,7 +2892,7 @@ def getFiles(self, owner, pattern = None):
2892
2892
continue
2893
2893
if not (match .group () == name ):
2894
2894
continue
2895
- result .append (os .path .join (root , name ).replace ("\\ " , "/" ))
2895
+ result .append (os .path .realpath ( os . path . join (root , name ) ).replace ("\\ " , "/" ))
2896
2896
return result
2897
2897
2898
2898
def getIncludes (self , owner ):
0 commit comments