From 9affb3a214e6d016a7dd374842b7d66e82829496 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sat, 18 May 2024 14:41:33 +0800 Subject: [PATCH] Update cmake_build.py --- cmake_build.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmake_build.py b/cmake_build.py index 2653b8ea..562a7cf6 100644 --- a/cmake_build.py +++ b/cmake_build.py @@ -7,7 +7,12 @@ assert os.system("python prebuild.py") == 0 if not os.path.exists("build"): os.mkdir("build") -config = 'Release' +assert len(sys.argv) <= 2 + +if len(sys.argv) == 2: + config = sys.argv[1] +else: + config = 'Release' os.chdir("build")