diff --git a/CMakeLists.txt b/CMakeLists.txt index b7bc9e4..60fa5ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,6 +35,12 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin") option(OPENRA3_WERROR "Treat warnings as errors" OFF) +# Windows: statically link the C++ runtime (libc++, libunwind) so the .exe only +# needs SDL3.dll next to it at runtime. +if(WIN32) + add_link_options(-static) +endif() + function(openra3_target_defaults target) target_compile_options(${target} PRIVATE -Wall -Wextra) set_property(TARGET ${target} PROPERTY CXX_MODULE_STD ON) diff --git a/VERSION b/VERSION index 0ea3a94..0c62199 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2.0 +0.2.1 diff --git a/src/core/ra3.core.cppm b/src/core/ra3.core.cppm index c330c53..073b104 100644 --- a/src/core/ra3.core.cppm +++ b/src/core/ra3.core.cppm @@ -12,7 +12,7 @@ import std; export namespace ra3::core { inline constexpr int version_major = 0; inline constexpr int version_minor = 2; - inline constexpr int version_patch = 0; + inline constexpr int version_patch = 1; using real = float; using int32 = std::int32_t;