os.putenv('PKG_CONFIG_PATH', os.path.join(self.installDir, 'lib', 'pkgconfig')) # I found no way to do this within cmake
subprocess.check_call(['cmake', self.sourceFolder, '-DCMAKE_BUILD_TYPE='+self.buildType,
'-DCMAKE_INSTALL_PREFIX='+self.installDir]+self.cmakeParameters)
os.unsetenv('PKG_CONFIG_PATH')
os.putenv('PKG_CONFIG_PATH', os.path.join(self.installDir, 'lib', 'pkgconfig')) # I found no way to do this within cmake
subprocess.check_call(['cmake', self.sourceFolder, '-DCMAKE_BUILD_TYPE='+self.buildType,
'-DCMAKE_INSTALL_PREFIX='+self.installDir]+self.cmakeParameters)
os.unsetenv('PKG_CONFIG_PATH')