cmake_minimum_required(VERSION 3.10) <- needed for c++17
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set_target_properties(${TARGET_SERVER} PROPERTIES
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
)
src/game/server/entities/character.cpp:580:56: warning: implicitly-declared ‘constexpr vector2_base<float>::vector2_base(const vector2_base<float>&)’ is deprecated [-Wdeprecated-copy]
580 | GameServer()->CreateSound(m_Pos, SOUND_WEAPON_NOAMMO);
|
fix:
explicitly declare a copy constructor for vector2_base:
src/base/vmath.h:
add a copy constructor:
```
constexpr vector2_bas...