Commit Graph
314 Commits
Author SHA1 Message Date
Shauren 7daadf8e2a Build/GCC: Disable useless warning 2023-08-20 21:19:40 +02:00
Shauren 639acc4eb6 Build: Increase required msvc version slightly 2023-08-20 21:19:26 +02:00
Max Drosdo.www 13b91f5afb removed legacy cmake libsdir entry (#24813)
(cherry picked from commit 60e813df6b7dfe599266cf36ddd52ba204917267)
(cherry picked from commit aa409f8993f3ee5e90dd64511f34504ebafec7d1)
2023-08-20 04:35:24 +02:00
Ovahlord 5bc189372b CMake: fixed FindOpenSSL cmake macro 2023-08-01 10:20:00 +02:00
JustZerooo 2fdd6742b2 Update FindMySQL.cmake
Add MySQL 8.1 Server Support
2023-07-29 11:07:51 +02:00
Kargatum 43a19bba2a Core/Mysql: support MariaDB 10.5 (#25359) 2023-07-09 11:18:39 +02:00
Ovahlord 083fb2da32 Build: move MSCV warning C5054 to warning level 3 2023-07-07 23:44:27 +02:00
Ovahlord 6fe9ebbded CMake: fixed GCC cmake settings file 2023-07-07 21:09:13 +02:00
Daniel S. Reichenbach a7527a8698 Core/Misc: added support for OpenSSL 3, dropped support for OpenSSL 1.0 and fixed build for Fixed build for MariaDB 2023-07-07 21:01:49 +02:00
Ovahlord f34534465a Build: enable C++20 and updated all compiler requirements
* ported some header and cmake updates from master branch
2023-07-04 23:49:57 +02:00
Shauren 6eb536f09c Build: Update required cmake version to 3.18
* Remove cotire

# Conflicts:
#	dep/PackageList.txt
2023-06-05 14:44:56 +02:00
Ovahlord d4160ed9eb Misc: removed some obsolete cmake target checks 2023-06-05 14:43:06 +02:00
Trulsrock e63f994af6 Added from_hex for OpenSSL version parsing (#26730)
(cherry picked from commit 657970fb69ddb70b0650bc726a0065b38f6dbd29)
(cherry picked from commit 65521a40d274ce73769371b00d71c4b83e5ec319)
2023-05-19 22:27:07 +02:00
ipriver 408c386830 fixed indentation for cmake files
(cherry picked from commit a46d047f9466c6f16597755bb7c771a9d1a147f2)
(cherry picked from commit bde36062b7a0bf621086e73a5d419cd8637e9e96)
2023-05-19 22:26:00 +02:00
Ovahlord 33bc96fcce CMake: disable unscoped enum type warning C26812 for msvc compilers 2022-02-21 10:36:36 +01:00
Shauren f4c39d1aa9 Build: Disable Visual Studio 2022 MSBuild resource manager to make compile take only as much time as it does in Visual Studio 2019 2022-01-28 21:14:47 +01:00
Shauren 29fc3d55b4 Build: Enable some msvc warnings that are enabled for other compilers
# Conflicts:
#	cmake/compiler/msvc/settings.cmake
2022-01-21 13:56:39 +01:00
Roc13xandShauren 69aeb1e8a7 Build: Update FindOpenSSL.cmake and remove custom FindGit (#294)
(cherry picked from commit 77596dba67483c8050c3d3ea1c4299360fde6beb)

Co-authored-by: Shauren <shauren.trinity@gmail.com>
2021-10-11 22:50:02 +02:00
Shauren d255fb3dbd Build: Fixed branch name displayed by appveyor binaries
(cherry picked from commit 85671f20d866797a5a401d714b183d07c55f8d83)
2021-09-10 10:22:18 +02:00
Shauren 8c8111976a Build: Replace git describe with more script friendly alternative, git rev-parse and git diff-index
(cherry picked from commit 29659b4192dc114540379e92a5cc915a465821d8)
2021-09-01 20:33:59 +02:00
Carbenium 831c45b1da dep: Add catch2 unit test framework and wire it up
To enable the test suite, make sure to configure CMake with -DBUILD_TESTING=1 , since it is disabled by default. The catch2 dependency will be downloaded during configure time.

Also add a new target "tests-common", which includes unit tests for the "common" project. To finally run the tests use the "test" target.

CircleCI: Run unit tests
(cherry picked from commit 6a28ee7b2a4269aa7e43265d1cd0067537e3e883)
2021-07-29 19:07:52 +02:00
Shauren 37d67ac8d2 Build: Set correct year in VER_LEGALCOPYRIGHT_STR
# Conflicts:
#	revision_data.h.in.cmake
2021-05-17 15:06:00 +02:00
Shauren fbffbbbe14 Dep: Switch to boost process instead of old standalone version 2021-02-19 15:21:15 +01:00
Shauren b81afb5b92 Build: Fixed finding OpenSSL 1.1.1 installed from .msi packages instead of .exe
Closes #24664
2020-09-09 16:18:44 +02:00
Peter Keresztes Schmidt cbd6fb2315 Build: Enable -Wimplicit-fallthrough on clang (#25056)
* Misc: Use [[fallthrough]] attribute instead of comment to mark intentional fallthroughs

Related: #25006

* Misc: Add some missing breaks (no-ops) to satisfy clang

Related: #25006
Closes #25055

* Build: Enable -Wimplicit-fallthrough on clang

Closes #25006
# Conflicts:
#	src/server/game/Entities/Player/Player.cpp
#	src/server/game/Spells/SpellInfo.cpp
#	src/server/scripts/Battlefield/BattlefieldWG.cpp
#	src/server/scripts/EasternKingdoms/BlackrockMountain/BlackrockSpire/instance_blackrock_spire.cpp
#	src/server/scripts/EasternKingdoms/ScarletMonastery/boss_high_inquisitor_fairbanks.cpp
#	src/server/scripts/Northrend/IcecrownCitadel/boss_rotface.cpp
#	src/server/scripts/Northrend/Naxxramas/boss_thaddius.cpp
#	src/server/shared/DataStores/DBCDatabaseLoader.cpp
2020-07-18 22:47:52 +02:00
Shauren 78e7687a05 Fix warnings related to Vector3::operator= and remove -Wno-deprecated-copy suppression
# Conflicts:
#	cmake/compiler/clang/settings.cmake
2020-07-13 20:37:26 +02:00
Carbenium 70e84c3e48 CMake: Use target_precompile_headers instead of cotire with CMake >= 3.16.0
# Conflicts:
#	cmake/macros/FindPCHSupport.cmake
2020-06-16 10:53:42 +02:00
Giacomo Pozzoni 9fdf598792 Cherry-pick some cmake commits (#24720)
* Build system: Support  new in cmake 3.17 Ninja Multi-Config generator

(cherry picked from commit 369b618d4f160816818681ed7e41063e2d9ba5b5)

* Build system: Fixed PCH with MSVC & Ninja generator

(cherry picked from commit d669f46b6d5190dabc686a35656e8b03f5ec325b)

* Core: Fix clang 10 warnings

(cherry picked from commit 7272508cb4b51ec5591b6f0e542ea29091db7546)

* Build system: Set -Wno-deprecated-copy only for clang 10

(cherry picked from commit 7fdeb259ba398d5d9343a5dcd1a89562dfcbe981)

* Core/Misc: GCC build and warning fixes

(cherry picked from commit 4d69cc1c567180b408ddbadb9edf26859cf4c006)

* Build system: Print found git version when warning about it being too old

(cherry picked from commit 1ae72db201189877c1b863fac140eb4b0a45c5bb)

* Build system: Removed hard requirement on BOOST_ROOT being set as environment variable, it can now be also passed as command line argument to cmake and fix compile warning with boost 1.73

(cherry picked from commit 161944b7643c62f9e7705c64e42d42e5d07f1959)

* Remove some code that was already removed from 335 and then cherry-picked into master

Co-authored-by: Shauren <shauren.trinity@gmail.com>
(cherry picked from commit 8c09b6e58b0e4f33b7a8e376a28709e693cf2914)
2020-06-11 20:24:00 +02:00
Shauren 8e65367d0c Build system: Print found git version when warning about it being too old 2020-06-11 00:36:41 +02:00
Shauren 9d0bfc0c56 Build/Misc: Removed -DDEBUG from clang compile options
(cherry picked from commit b0609757d32cfe256794e354d13f98d5a4c97020)
2020-05-06 00:01:13 +02:00
Giacomo Pozzoni 2e9f4285d9 Build: Add support to MariaDB 10.4 on Windows
MariaDB 10.4 (latest stable) is the only supported version.
2020-05-05 16:27:07 +02:00
Ovahlord 6d769330b0 CMake: deprecated all MySQL versions below 5.7 2020-04-15 10:23:03 +02:00
Shauren 5653d4e2de Core/DBLayer: Support using mysql 8 2020-04-15 10:19:24 +02:00
Shauren 0d84daa39c Build: Delete FindBoost.cmake and rely on the one that ships with cmake instead
# Conflicts:
#	cmake/macros/FindBoost.cmake
2020-04-05 21:06:09 +02:00
Giacomo Pozzoni e69cd41669 Require Visual Studio 2019 16.4 or greater (#24214)
* CI/AppVeyor: Add appveyor.yml file

* Build: Require Visual Studio 2019 16.4 or greater

* CI/AppVeyor: Upgrade to VS2019 image

* Update cmake error message

* CI/AppVeyor: Fix appveyor VS 2019 configuration
2020-04-04 18:42:10 +02:00
Giacomo Pozzoni c2913e608f Build: Enable and require c++17 2020-03-16 14:14:46 +01:00
Ovahlord 10dc04b2f2 CMake: added boost 1.72 to findboost macro 2020-02-27 15:25:12 +01:00
Ovahlord f4ec104998 Cmake: added latest boost versions to FindBoost cmake 2019-10-04 15:51:35 +02:00
Ovahlord 0299e10945 Core/Servers: nuke authserver 2019-09-30 07:26:54 +02:00
Ovahlord a723be6a64 Core/Dep: fixed build with boost 1.71 2019-09-14 02:59:19 +02:00
jackpoz 0b79415e59 Buildsystem: Fix finding VS 2019 compiled boost libs 2019-09-12 01:09:04 +02:00
Aokromes 14bb3131eb Cmake: Update outdated string 2018-09-12 10:59:18 +02:00
vincent-michael 404ad18608 Build: Added Boost version 1.67 to FindBoost
https://www.boost.org/users/history/version_1_67_0.html
2018-04-15 12:03:27 +02:00
ariel- 5ff847159c Core: header cleanup, split realmlist, boost compatibility, cotire, remove stormlib/zlib and stormlib/bzip2 and instead use dep sources 2018-03-28 04:41:59 -03:00
ariel- 7fff6c424f Compile zmq locally 2018-03-28 03:20:25 -03:00
Aokromes 19fa11cfa6 Increase gcc and clang to c++14 2018-03-08 23:55:48 +01:00
Shauren dde0239200 Buildsystem: Fixed finding openssl 1.1 libs 2018-03-06 21:06:58 +01:00
Warlockbugs 6a8c0df9a8 Core/Crypto: Transitional Cryptography update for OpenSSL 1.1 (#21534)
Support for both OpenSSL 1.0 LTS and OpenSSL 1.1 versions.

Many Linux distributions are still on 1.0 and will stay on LTS for quite
some time.

Port of CMaNGOS commit: https://github.com/cmangos/mangos-wotlk/commit/e1b0048f052eda46bb27d20224d0339960816ac2
2018-03-05 14:54:35 +01:00
jackpoz bb70a60ba7 Core/Misc: Add PERFORMANCE_PROFILING CMake option
Add a new CMake option called PERFORMANCE_PROFILING that should be used only when profiling the performance.
This option is unsupported, do not report any issue happening when enabling this option.
2018-02-18 18:36:32 +01:00
Aokromes 4bd0525edd Update copyright note for 2018 2018-01-01 01:06:19 +01:00