Add premake cmake generator.

`./build/CMakeLists.txt` is generated by `./xb.bat premake --devenv=cmake` and enables use of other IDEs like `CLion` for example.
This commit is contained in:
Joel Linn
2020-11-03 21:59:03 +01:00
committed by Rick Gibbed
parent 2a076c924f
commit 9dea6b3f62
4 changed files with 7 additions and 2 deletions

View File

@@ -372,9 +372,9 @@ def run_platform_premake(cc='clang', devenv=None):
if 'VSVERSION' in os.environ:
vs_version = os.environ['VSVERSION']
return run_premake('windows', 'vs' + vs_version)
return run_premake('windows', devenv or ('vs' + vs_version))
else:
return run_premake('linux', devenv == 'codelite' and devenv or 'gmake2', cc)
return run_premake('linux', devenv or 'gmake2', cc)
def run_premake_export_commands():