mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-12 13:51:10 +01:00
SCons: Prevent using vsproj
option outside Windows
Fixes #63305. (cherry picked from commit 4e56f96396cceb9f32674b6ca57a2777c8b5521c)
This commit is contained in:
parent
11ab10b7f2
commit
4a453e6121
@ -704,6 +704,9 @@ if selected_platform in platform_list:
|
||||
|
||||
# Microsoft Visual Studio Project Generation
|
||||
if env["vsproj"]:
|
||||
if os.name != "nt":
|
||||
print("Error: The `vsproj` option is only usable on Windows with Visual Studio.")
|
||||
Exit(255)
|
||||
env["CPPPATH"] = [Dir(path) for path in env["CPPPATH"]]
|
||||
methods.generate_vs_project(env, GetOption("num_jobs"))
|
||||
methods.generate_cpp_hint_file("cpp.hint")
|
||||
|
Loading…
Reference in New Issue
Block a user