Check if generator is set before comparing it...

parent 04b1576f
......@@ -89,7 +89,7 @@ class Target:
raise
def build_instructions(self, debug = False):
if self.generator.startswith('Visual Studio'):
if self.generator is not None and self.generator.startswith('Visual Studio'):
config = "Release"
if debug:
config = "Debug"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment