Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
702b4e29aa |
@@ -35,6 +35,12 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
|
|||||||
|
|
||||||
option(OPENRA3_WERROR "Treat warnings as errors" OFF)
|
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)
|
function(openra3_target_defaults target)
|
||||||
target_compile_options(${target} PRIVATE -Wall -Wextra)
|
target_compile_options(${target} PRIVATE -Wall -Wextra)
|
||||||
set_property(TARGET ${target} PROPERTY CXX_MODULE_STD ON)
|
set_property(TARGET ${target} PROPERTY CXX_MODULE_STD ON)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import std;
|
|||||||
export namespace ra3::core {
|
export namespace ra3::core {
|
||||||
inline constexpr int version_major = 0;
|
inline constexpr int version_major = 0;
|
||||||
inline constexpr int version_minor = 2;
|
inline constexpr int version_minor = 2;
|
||||||
inline constexpr int version_patch = 0;
|
inline constexpr int version_patch = 1;
|
||||||
|
|
||||||
using real = float;
|
using real = float;
|
||||||
using int32 = std::int32_t;
|
using int32 = std::int32_t;
|
||||||
|
|||||||
Reference in New Issue
Block a user