40 Commits

Author SHA1 Message Date
Shauren
d808284cde Dep/Boost: Search for all binary compatible boost installations, not only the one exactly matching MSVC toolset 2025-12-23 13:38:26 +01:00
Shauren
c87a004a16 Dep/Boost: Remove linking boost::system library, it is fully header only since 1.89 and has been just a empty dummy library since 1.69 2025-08-15 12:39:26 +02:00
Shauren
26cebef0fe Build: Ensure paths passed to find_package HINTS argument only use forward slashes since that is what cmake expects 2024-09-21 00:06:52 +02:00
Shauren
dbe8d1f11e Core: Remove boost iostreams dependency 2024-09-14 13:50:56 +02:00
Shauren
ab5fab5ee9 Build: Fixed CMake 3.30 FindBoost deprecation warning 2024-07-18 12:42:31 +02:00
Shauren
77fe2745fe Build: CMake cleanup
* Migrate all add_definitions to target_compile_definitions
* Remove -D from preprocessor definitions added by target_compile_definitions (unneccessary, cmake strips it anyway)
* Fixed NO_BUFFERPOOL not being set on g3d if jemalloc is used
* Moved library/compiler specific compile flag settings spread all over various CMakeLists to their related library/compiler file
* Remove ancient manual link flag settings for worldserver
2024-07-15 15:24:35 +02:00
Shauren
cfa838df5d Core/Misc: Support boost 1.85 2024-04-22 11:52:58 +02:00
Shauren
b888b1b09f Core/Calendar: Implement different timezone support for ingame calendar
Closes #8390
Closes #29427
2023-11-21 12:25:22 +01:00
funjoker
17c69368a3 Dep/Boost: Drop windows boost hacks (#29358) 2023-10-13 21:10:01 +02:00
Shauren
ade8aa33a1 Build: Silence CMake warnings about boost version being too new 2023-06-12 00:04:27 +02:00
Shauren
c9f1606b76 Build: Cleanup boost CMakeLists from pre-c++11 flag checks 2022-11-05 01:08:17 +01:00
Shauren
add53fb3ef Build: Update required cmake version to 3.18
* Remove cotire
2022-09-06 19:27:50 +02:00
Jan Van Buggenhout
ccc37df27d Build/CMake: Only complain about missing BOOST_ROOT when Boost is not found (#26598)
(cherry picked from commit 12668692ea)
2022-03-11 01:49:11 +01:00
Giacomo Pozzoni
e0ad19dc96 CMake: Add WITH_BOOST_STACKTRACE option to use libbacktrace (#26119)
* CMake: Add WITH_BOOST_STACKTRACE option to use libbacktrace

* Allow to specify where backtrace.h header is with cmake option -DBOOST_STACKTRACE_BACKTRACE_INCLUDE_FILE="/usr/lib/gcc/x86_64-linux-gnu/10/include/backtrace.h"

Co-authored-by: Trond B. Krokli <38162891+illfated@users.noreply.github.com>
(cherry picked from commit dc78b5a6a7)
2022-03-06 22:24:18 +01:00
Shauren
3248d7844b Build: Never automatically link any boost library with a #pragma comment(linker) encountered in boost headers 2022-02-16 20:16:22 +01:00
Shauren
f6e72494f1 Dep: Raise required boost versions to 1.73 on windows and 1.71 on linux and remove compatibility code for unsupported versions 2022-02-14 12:43:57 +01:00
jackpoz
10e3016e85 Dep/Boost: Set boost msvc version on Windows to 14.2
14.2 is the only supported one (Visual Studio 2019)

(cherry picked from commit 2ea511b9f4)
2022-01-24 13:02:52 +01:00
Giacomo Pozzoni
8735c5f511 Dep/Boost: Remove unused thread library (#25076)
(cherry picked from commit cf5babc302)
2022-01-23 22:17:02 +01:00
Giacomo Pozzoni
196a62c031 Dep/Boost: Set boost version to 1.67 on *nix and 1.70 on Windows (#25069)
(cherry picked from commit c54dc3ef92)
2022-01-23 21:37:33 +01:00
Peter Keresztes Schmidt
770fbcca0c Core/Misc: Replace boost::optional with std::optional (#25047)
C++17 is already mandatory, so it's a safe thing to do

(cherry picked from commit 202fd41389)
2022-01-23 18:05:59 +01:00
jackpoz
aeaca00d76 Buildsystem: Fix finding VS 2019 compiled boost libs
(cherry picked from commit 3d3b7f438c)
2021-12-01 00:28:13 +01:00
Shauren
ae84dd2a65 Buildsystem: Configure boost to return error messages encoded using utf8 instead of whatever current system code page is on windows
(cherry picked from commit 5b4eefb6d8)
2021-11-21 15:03:48 +01:00
Shauren
50a64ccd1e Core/Misc: Revert back to using boost::regex, std::wregex doesn't work for name validation
Closes #20094

(cherry picked from commit 6691e41873)
2020-08-22 13:21:55 +02:00
Shauren
8c4e6c5e14 Build: Fix gcc pch builds 2020-06-20 13:03:13 +02:00
Shauren
161944b764 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 2020-05-30 17:43:56 +02:00
Aokromes
b0bf1275ee New Year 2020-01-02 06:44:10 +01:00
Shauren
b983769a9d Core/Build: Fix build with boost 1.71
(cherry picked from commit 9f7cc32c6e)
2019-09-14 14:26:52 +02:00
Naios
5add0c004e Dep: Use the anonymous namespace free definition of boost::none.
* Fixes MSVC linking errors after the recent changes:

    "class boost::none_t const & const boost::`anonymous namespace'
    ::none" (?none@?A0x518851d0@boost@@3AEBVnone_t@2@EB)
    already defined in scripts_commands.lib...

* Sets the required version of boost on windows to 1.66
  according to the wiki.

(cherrypicked from 3da60f8400)
2019-08-17 20:04:14 +02:00
vincent-michael
5620eb9463 Update copyright note for 2019
auto happy = new year(2019);
2019-01-01 10:14:33 +01:00
Aokromes
bc88d3bc15 Scripts/Commands: implemented command .server debug
- Shows detailed information about server setup, useful when reporting a bug:
 * rev. hash
 * versions of mysql, openssl, boost, cmake
 * info about autoupdater
 * info about ports (realmlist and current)
 * vmap/map/mmap status and folder sizes
 * available DBC locales
 * TDB version

cherry pick of d18f8b94b0

Running this command when reporting bugs is MANDATORY (you can censor paths)
2018-03-14 11:41:09 +01:00
Shauren
dfd2660a85 Core/Misc: Added compatibility layer for boost 1.66 and future std:: networking stuff
* Based on work done by @dimiandre in PR #21173

Closes #21171
Closes #21173
2018-01-06 01:21:59 +01:00
vincent-michael
7d00ae4045 Update copyright note for 2018
auto happy = new year(2018);
2018-01-01 00:40:17 +01:00
vincent-michael
2645aedf61 CMake: Optimize code in 5734643cec 2017-06-27 22:02:49 +02:00
ariel-
5734643cec Build: fix finding VS 2017 compiled boost libs 2017-06-26 00:31:48 +02:00
vincent-michael
86b98686a9 Update copyright note for 2017
Happy new year
2017-01-01 16:23:13 +01:00
Shauren
b6f1f8405f Core/Misc: Added regex compatibility layer to fall back to boost::regex for really old compiler 2016-12-10 19:11:10 +01:00
Shauren
943496e56b Dep: Remove boost regex dependency and replace its uses with std regex (works since gcc 4.9) 2016-07-28 08:48:48 +02:00
Vincent-Michael
fe61770036 Build: Updated boost required to 1.55 2016-05-14 21:19:22 +02:00
Naios
a8ce2b68eb CMake: Fix a misbehaviour of the boost no scoped enums test
* Sometimes added the definition in MSVC although the test
  passed which lead MSVC to rebuild the whole solution
  even on a CMAKE_INSTALL_PREFIX change.
2016-04-11 21:13:05 +02:00
Naios
b0ac332d58 CMake: Provide proper interface targets from dependencies
* to make use of cmakes inherited link dependencies which
  imports all include directories/ definitions from the link library

(cherry picked from commit 1a572d2425)
2016-03-19 23:19:50 +01:00