Commit 80bf9381 authored by Ghislain MARY's avatar Ghislain MARY

Allow using CMake extra generator.

parent c1144247
...@@ -203,12 +203,12 @@ def main(argv=None): ...@@ -203,12 +203,12 @@ def main(argv=None):
retcode = 0 retcode = 0
return retcode return retcode
#only generated makefile if we are using Ninja or Makefile #only generated makefile if we are using Ninja or Makefile
if args.generator == 'Ninja': if args.generator.endswith('Ninja'):
if not check_is_installed("ninja", "it"): if not check_is_installed("ninja", "it"):
return 1 return 1
generate_makefile('ninja -C') generate_makefile('ninja -C')
print("You can now run 'make' to build.") print("You can now run 'make' to build.")
elif args.generator == "Unix Makefiles": elif args.generator.endswith("Unix Makefiles"):
generate_makefile('$(MAKE) -C') generate_makefile('$(MAKE) -C')
print("You can now run 'make' to build.") print("You can now run 'make' to build.")
elif args.generator == "Xcode": elif args.generator == "Xcode":
......
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