File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -771,7 +771,12 @@ def search_cmake_cache(build_profile):
771
771
772
772
if not current_cmake_generator :
773
773
# Search for available generators
774
- cmake_generator_map = {"ninja" : "Ninja" , "make" : "Unix Makefiles" , "xcodebuild" : "Xcode" }
774
+ cmake_generator_map = {
775
+ "msbuild" : "Visual Studio 17 2022" ,
776
+ "ninja" : "Ninja" ,
777
+ "make" : "Unix Makefiles" ,
778
+ "xcodebuild" : "Xcode" ,
779
+ }
775
780
available_generators = []
776
781
for generator in cmake_generator_map .keys ():
777
782
if shutil .which (generator ):
@@ -949,6 +954,8 @@ def configure_cmake(
949
954
# Try to set specified generator (will probably fail if there is an old cache)
950
955
if args .G :
951
956
cmake_args .extend (["-G" , args .G ])
957
+ if "Visual Studio" in args .G :
958
+ cmake_args .extend (["-A" , "x64" , "-T" , "ClangCL" ])
952
959
953
960
if args .trace_cmake_perf :
954
961
cmake_performance_trace = os .path .join (
You can’t perform that action at this time.
0 commit comments