Unverified Commit 6d918279 authored by hoshinohikari's avatar hoshinohikari Committed by GitHub
Browse files

Fix cmake error caused by lack of environment variables in Windows environment

parent c515cc49
...@@ -258,7 +258,7 @@ class CMakeBuild(BuildExtension): ...@@ -258,7 +258,7 @@ class CMakeBuild(BuildExtension):
# CMake allows an arch-in-generator style for backward compatibility # CMake allows an arch-in-generator style for backward compatibility
contains_arch = any(x in cmake_generator for x in {"ARM", "Win64"}) contains_arch = any(x in cmake_generator for x in {"ARM", "Win64"})
if not single_config and not contains_arch: if not single_config and not contains_arch and cmake_generator:
cmake_args += ["-A", PLAT_TO_CMAKE[self.plat_name]] cmake_args += ["-A", PLAT_TO_CMAKE[self.plat_name]]
# Multi-config generators have a different way to specify configs # Multi-config generators have a different way to specify configs
......
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