Commit Graph

225 Commits

Author SHA1 Message Date
Shauren f4ebab2a73 Buildsystem: Try picking up zmq lib for VS 2013 if using VS 2015 2016-01-21 17:50:37 +01:00
Aokromes 524c3b2e26 Build/Misc: Clarify the meaning of one setting
(cherry picked from commit 6861deaae2)
2016-01-20 21:31:10 +01:00
Shauren e1d2d60ec3 Buildsystem: Updated required boost version 2016-01-14 17:45:11 +01:00
Vincent-Michael 478cc756eb Update copyright note for 2016
Happy new year (Again new year with idiots ...)
2016-01-01 00:34:25 +01:00
Vincent-Michael c63d515643 Build: Added 1.60 Boost version to FindBoost 2015-12-22 11:33:06 +01:00
Gacko 4eae523e32 Revert "Build/Clang: Suppress unused-local-typedefs warning."
This reverts commit 27bb569368 and 98e7ab4461.
2015-12-19 13:03:21 +01:00
Gacko 98e7ab4461 Build/Clang: Suppress unused-local-typedefs warning only for Clang 3.6.0+. 2015-11-15 18:54:32 +01:00
Gacko 27bb569368 Build/Clang: Suppress unused-local-typedefs warning. 2015-11-15 18:28:25 +01:00
Shauren b5fbf773a5 Buildsystem: Fixed building on windows 10 with cmake 3.4 2015-11-12 16:59:07 +01:00
Naios 0946fcf2aa Core/Build: Never overwrite the msvc cxx flags in the cache
* Setting all compiler flags in the cache led to circular bloating of
  msvc cxx parameters (was visible in console) which caused MSVC to
  rebuild the whole solution even on a small CMake change.
  It's not neccessary anyway to set the cxx parameters to the cache
  to take effect.
* I'm not sure if the workarround is still needed for MSVC 12+.
* Cleaning the CMake cache is recommended!
* ref #15671
2015-10-17 13:11:49 +02:00
Shauren b564c10b13 Core/Players: Implemented serverside validation of reserved/profane names
Closes #15357

New library dependency: Boost.Regex
2015-08-30 00:17:08 +02:00
StormBytePP 6a9fc63e41 Core/Build: Removed obsolete SystemConfig.h and made genrev be part of shared library, which allows cache hits to happen more likely
(cherry picked from commit 94f69fb1bc)
2015-08-16 17:50:40 +02:00
DDuarte 519ba47429 Build: Add 1.59 Boost version to FindBoost 2015-08-15 17:48:00 +01:00
jackpoz e70290d558 Buildsystem: Fix Boost not found targeting VS2015 with pre-built binaries
Fix Boost libraries not being found by CMake when targeting Visual Studio 2015 with Boost installed using the binaries.
Fixes #15277

(cherry picked from commit ca940548bf)
2015-08-15 17:46:19 +01:00
Shauren 7732ad5153 Buildsystem/MSVC: Added missed change 2015-08-07 09:29:28 +02:00
Shauren dcb1990e93 Buildsystem/MSVC: Enabled /Zc:throwingNew for Visual Studio 2015 builds
More info here: http://blogs.msdn.com/b/vcblog/archive/2015/08/06/new-in-vs-2015-zc-throwingnew.aspx

Closes #15230
2015-08-07 00:12:41 +02:00
DDuarte e2fb3bbd46 Build/CMake: Partially revert recent changes to FindMySQL.cmake
Looking for folders like ".../MySQL/*/include" matches the MySQL Connector C libs which caused some problems.
Related #15072, #15068

P.S ".../MySQL/MySQL Server*/include" doesn't work
2015-07-27 01:10:42 +01:00
Duarte Duarte 9016fb078a Merge pull request #15155 from StormBytePP/6.x
Correctly displaying error message when libZMQ is not found

Closes #15152
2015-07-25 13:18:57 -07:00
Shauren 52127197ec Buildsystem/MSVC: Enabled /bigobj for all x64 build types 2015-07-24 19:21:31 +02:00
David Carlos Manuelda 934498e86c Correctly displaying error message at cmake's configure stage when libZMQ has not been found 2015-07-24 06:09:01 +02:00
Shauren a22e4e121a Core/Misc: Fixing warnings detected by Visual Studio 2015 compiler 2015-07-21 00:33:36 +02:00
jackpoz 6b30fbc238 Buildsystem/Clang: Suppress warning
Suppress -Wmismatched-tags warnings on clang to avoid false positive warnings reported using gcc 4.8

(cherry picked from commit 879af88d21)
2015-07-03 01:08:10 +01:00
DDuarte d4deb17a2f Build/CMake: Fix finding MySQL install 2015-06-29 14:03:52 +01:00
jackpoz c0f56fbfd8 Core/Misc: Add valgrind support for jemalloc
Set CMake option VALGRIND to add valgrind support to jemalloc. Set CMake parameter VALGRIND_INCLUDE_DIR to the valgrind include directory.

(cherry picked from commit 60a29f7614)
2015-06-26 03:30:11 +01:00
jackpoz a8e7bfe05b Core/Misc: Disable G3D buffer pools if jemalloc is enabled
(cherry picked from commit d78eae1eaf)
2015-06-26 03:23:21 +01:00
Duarte Duarte fb4a9823c4 Merge pull request #14723 from TrinityCore/findmysql-update
Update FindMySQL.cmake
2015-06-02 14:13:56 +01:00
Shauren 1987d3187d Buildsystem: Removed handling for -DPREFIX shortcut for -DCMAKE_INSTALL_PREFIX cmake option, it an internal cmake variable since version 3.2 2015-05-29 22:29:16 +02:00
Duarte Duarte 0a2351ac44 Update FindMySQL.cmake
Replace hardcoded paths to C:/Program Files
2015-05-19 02:36:42 +01:00
Duarte Duarte c31a6c0853 Update FindMySQL.cmake
Simplify path lookups of the MySQL installation on Windows
2015-05-19 02:32:23 +01:00
Jared Jones af99d0a597 CMake OS X: Fixed Debug Mode for Xcode
On newer versions of Xcode, the preprocessor macro #DEBUG is not defined by default. In order to set the debug flag it has to be set manually. If this does not happen then in the "Common.h" file the preprocessor will assume that we are building under a release mode instead of the debug mode.
Ref: ad0cc83c84
2015-05-10 01:46:23 -05:00
Shauren 5acc4b14aa Buildsystem: Updated FindBoost macro, now finds versions 1.57 and 1.58 as well 2015-04-27 12:44:37 +02:00
Daniel M. Weeks 71ba35a6cd Fix indentation in unix cmake settings 2015-04-15 19:20:26 +02:00
Naios ed4722b6e6 CMake: Use source_groups to represent the source tree
* It let ide's (like vs) display the source tree.
* Disabled by default.
* Soft requirement is cmake >= 2.8.12 .
* Offers 2 modes: flat & hierarchical.
* For detailed description see #14471
* Thanks @click for help and advises.
* Closes #14471

(cherry picked from commit c386711972)

Conflicts:
	src/server/authserver/CMakeLists.txt
2015-03-29 16:13:22 +02:00
Naios 352012e531 Core/Updates: Add an automatic database update system. Automatically detects new and edited sql updates through file lists and hashing. Detects renames, deletes and is able to create and auto import full databases. * cleanups in main.cpp of world & bnetserver * refactoring in DatabaseWorkerPool.h & MySQLConnection.cpp
Make sure you re-run cmake, because boost::iostreams was added as dependency.
Maybe you need to install libboost-iostreams1.55-dev on unix as well.

Import every update manual until (included) those INSERT IGNORE updates for each database.

Thanks DDuarte and Shauren for your amazing ideas, help and advises.

In hope that nobody gets a "Your database structure is not up to date..." anymore ,-)

Signed-off-by: Naios <naios-dev@live.de>
Signed-off-by: Nayd <dnpd.dd@gmail.com>
2015-03-21 14:09:38 +00:00
Guillaume Belz 9ffeb58d09 FindOpenSSL: fix detection of OpenSSL 1.0.2
Closes #14284
2015-03-08 05:23:45 +01:00
Shauren 4669f94018 Buildsystem/Genrev: Fixed revision generator not reading existing cmake cache variables 2015-02-22 20:51:25 +01:00
leak f9e5f216b7 CMake: Allow specifying the mysql location by environment variable. 2015-02-19 10:23:37 +01:00
Nayd a87442be68 Tools: Remove mesh_extractor
mesh_extractor is not ready for production and it will be developed
in a different branch
2015-01-25 15:19:11 +00:00
Nayd 08a98c6237 Line ending fix, sorry. 2015-01-19 00:07:10 +00:00
Shauren b7f254db3d Buildsystem/MSVC: Disabled C4351: new behavior: elements of array 'x' will be default initialized for all builds, even when using WITH_WARNINGS 2015-01-06 14:25:23 +01:00
Vincent-Michael ab90f74486 Update copyright note for 2015
Happy new year
2015-01-01 00:28:09 +01:00
Duarte Duarte cd0372ce7b CMake: Fix typo in MSVC_EXPECTED_VERSION
Thanks @Aridev

Closes #13820
2014-12-30 16:50:30 +00:00
Nayd 56a665ccf3 CMake: Require VS 2013 Update 3
Update 4 (includes 3) can be downloaded at http://www.microsoft.com/en-us/download/details.aspx?id=44921

Closes #13813
2014-12-29 20:55:53 +00:00
Nayd 702f774a49 CMake: Ignore MSVC warning C4351
new behavior: elements of array 'array' will be default initialized

"If you want the new behavior, which is likely, because the array was explicitly added to the constructor's member initialization list, use the warning pragma to disable the warning. The new behavior should be fine for most users."
2014-12-28 21:22:57 +00:00
Nayd 7e6dadfea6 CMake/FindBoost: Fix policy CMP0054 warning (added in 3.1) 2014-11-14 00:48:38 +00:00
DDuarte 1034b4d460 Build/CMake: Use BOOST_NO_SCOPED_ENUMS if Boost version is less than 1.51
http://www.boost.org/doc/libs/1_57_0/libs/config/doc/html/boost_config/boost_macro_reference.html#boost_config.boost_macro_reference.boost_deprecated_macros
2014-11-11 18:26:25 +00:00
DDuarte 90c53e8c84 Core: Nuke authserver
It has been replaced by bnetserver since grunt was deprecated
2014-11-10 20:57:39 +00:00
DDuarte 62759880a7 CMake: Improve FindZMQ on Windows
When ZMQ version is not found in the registry it will enumerate possible .lib names and try to find those
2014-11-04 14:19:51 +00:00
DDuarte 386b97c485 Build: Fixup 428d510f76. Use check_cxx_source_compiles instead of try_compile 2014-10-30 01:57:54 +00:00
Duarte Duarte 6156a541f5 Merge pull request #13478 from bloerwald/cmake/use_CMAKE_BUILD_TYPE_with_clang_as_well
cmake: use $CMAKE_BUILD_TYPE instead of $CONFIGURATION as BUILD_DIRECTIVE
2014-10-30 00:18:01 +00:00