Skip to content

Commit

Permalink
fix setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
schuhmaj committed Apr 18, 2024
1 parent 5b9f1e5 commit 15083a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def get_cmake_generator():
If not, returns "Ninja" if ninja build is installed.
Otherwise, none is returned.
"""
if (os_env_generator := os.environ.get("CMAKE_GENERATOR")) is not None:
os_env_generator = os.environ.get("CMAKE_GENERATOR", None)
if os_env_generator is not None:
return os_env_generator
elif is_ninja_installed():
return "Ninja"
Expand Down

0 comments on commit 15083a5

Please sign in to comment.