Commit 354b175a authored by Ghislain MARY's avatar Ghislain MARY

Fix prepare.py error related to generator.

parent 490ceb07
......@@ -244,18 +244,18 @@ def main(argv=None):
retcode = 0
return retcode
# only generated makefile if we are using Ninja or Makefile
if args.generator.endswith('Ninja'):
if target.generator.endswith('Ninja'):
if not check_is_installed("ninja", "it"):
return 1
generate_makefile('ninja -C')
info("You can now run 'make' to build.")
elif args.generator.endswith("Unix Makefiles"):
elif target.generator.endswith("Unix Makefiles"):
generate_makefile('$(MAKE) -C')
info("You can now run 'make' to build.")
elif args.generator == "Xcode":
elif target.generator == "Xcode":
info("You can now open Xcode project with: open WORK/cmake/Project.xcodeproj")
else:
warning("Not generating meta-makefile for generator {}.".format(args.generator))
warning("Not generating meta-makefile for generator {}.".format(target.generator))
return 0
......
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