Skip to content

Commit

Permalink
[Enhancement] change project to c++ 20 (#662)
Browse files Browse the repository at this point in the history
Modified for the project to support the use of c++ 20
New requirements:
• CMake version 3.22
• GCC version 9
• Visual Studio version 17.3
• Added minimum version of Visual Studio and GCC (c++ 20 requirement)
  • Loading branch information
dudantas authored Dec 8, 2022
1 parent fe2a920 commit 68c5b98
Show file tree
Hide file tree
Showing 9 changed files with 316 additions and 393 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
cmake_minimum_required(VERSION 3.22 FATAL_ERROR)

# CMAKE
# apt install build-essential git
Expand All @@ -7,7 +7,8 @@ cmake_minimum_required(VERSION 3.16 FATAL_ERROR)

# VCPKG
# cmake -DCMAKE_TOOLCHAIN_FILE=/opt/workspace/vcpkg/scripts/buildsystems/vcpkg.cmake ..
# ./vcpkg install boost-asio boost-lockfree boost-variant boost-filesystem boost-iostreams boost-system libmariadb pugixml spdlog
# Needed libs is in file vcpkg.json
# Windows required libs: .\vcpkg install --triplet x64-windows boost-asio boost-lockfree boost-variant boost-filesystem boost-iostreams boost-system libmariadb pugixml spdlog protobuf jsoncpp curl mpir
if(DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE)
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
CACHE STRING "")
Expand Down
3 changes: 2 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ sonar.organization=opentibiabr
sonar.projectName=canary
sonar.projectVersion=1.0
sonar.sources=./src
sonar.sourceEncoding=UTF-8
sonar.sourceEncoding=UTF-8
sonar.cfamily.cpp20=true
Loading

0 comments on commit 68c5b98

Please sign in to comment.