Check if generator is set before comparing it...

parent 04b1576f
...@@ -89,7 +89,7 @@ class Target: ...@@ -89,7 +89,7 @@ class Target:
raise raise
def build_instructions(self, debug = False): 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" config = "Release"
if debug: if debug:
config = "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