mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-07 03:48:14 +00:00
cmake: build ci and and release with static runtime library
(The Visual Studio projects do this as well)
This commit is contained in:
@@ -471,6 +471,10 @@ class Releaser:
|
||||
"-DCMAKE_EXE_LINKER_FLAGS=-DEBUG",
|
||||
# Linker flag for shared libraries
|
||||
"-DCMAKE_SHARED_LINKER_FLAGS=-INCREMENTAL:NO -DEBUG -OPT:REF -OPT:ICF",
|
||||
# MSVC runtime library flags are selected by an abstraction
|
||||
"-DCMAKE_POLICY_DEFAULT_CMP0091=NEW",
|
||||
# Use statically linked runtime (-MT) (ideally, should be "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||
"-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded",
|
||||
])
|
||||
|
||||
with self.section_printer.group(f"Build VC CMake project for {arch}"):
|
||||
|
Reference in New Issue
Block a user