Update cmake_build.py

This commit is contained in:
blueloveTH 2024-05-18 14:41:33 +08:00
parent 689db5b032
commit 9affb3a214

View File

@ -7,6 +7,11 @@ assert os.system("python prebuild.py") == 0
if not os.path.exists("build"): if not os.path.exists("build"):
os.mkdir("build") os.mkdir("build")
assert len(sys.argv) <= 2
if len(sys.argv) == 2:
config = sys.argv[1]
else:
config = 'Release' config = 'Release'
os.chdir("build") os.chdir("build")