@@ -78,6 +78,8 @@ def devhelp(helpstring):
7878 help = 'enable amalgamated build (%(choices)s)' )
7979 buildgrp .add_argument ('--lto' , metavar = 'X' , choices = ['ON' , 'OFF' ], type = str .upper ,
8080 help = 'enable link-time optimizations (%(choices)s)' )
81+ buildgrp .add_argument ('--static-crt' , metavar = 'X' , choices = ['ON' , 'OFF' ], type = str .upper ,
82+ help = 'enable msvc static CRT (%(choices)s)' )
8183 buildgrp .add_argument ('--shared-libs' , metavar = 'X' , choices = ['ON' , 'OFF' ], type = str .upper ,
8284 help = 'enable building of shared libraries (%(choices)s)' )
8385 buildgrp .add_argument ('--strip' , metavar = 'X' , choices = ['ON' , 'OFF' ], type = str .upper ,
@@ -187,6 +189,7 @@ def build_options_append(cmakeopt, cliarg):
187189 build_options_append ('ENABLE_AMALGAM' , arguments .amalgam )
188190 build_options_append ('ENABLE_LTO' , arguments .lto )
189191 build_options_append ('BUILD_SHARED_LIBS' , arguments .shared_libs )
192+ build_options_append ('ENABLE_STATIC_CRT' , arguments .static_crt )
190193 build_options_append ('ENABLE_STRIP' , arguments .strip )
191194 build_options_append ('CMAKE_TOOLCHAIN_FILE' , arguments .toolchain )
192195 build_options_append ('CMAKE_VERBOSE_MAKEFILE' , arguments .verbose )
0 commit comments