Commit Graph

255 Commits

Author SHA1 Message Date
Aokromes
48724ada69 Tools: Enable tools compilation by default
(the time diff is small and it will help starters, advanced users can disable it at any time on cmake guy/compilation script)
2017-02-09 09:46:05 +01:00
Aokromes
14f1504991 Update FindBoost.cmake
(cherry picked from commit 9790cb5762)
2017-02-05 00:57:17 +01:00
Aokromes
de16ff14de Update options.cmake
(cherry picked from commit e3de0ef531)
2017-02-05 00:02:16 +01:00
vincent-michael
2bc17e0880 Build: Added 1.63 Boost version to FindBoost 2017-01-15 22:33:27 +01:00
Shauren
a6d29d4058 Revert "Build/Clang: Suppress -Wexpansion-to-defined because of rapidjson dep"
This reverts commit 467e49c1fa.
2017-01-02 17:16:15 +01:00
vincent-michael
86b98686a9 Update copyright note for 2017
Happy new year
2017-01-01 16:23:13 +01:00
DDuarte
467e49c1fa Build/Clang: Suppress -Wexpansion-to-defined because of rapidjson dep
https://travis-ci.org/TrinityCore/TrinityCore/builds/187588737#L985-L995
2016-12-30 02:15:40 +00:00
ariel-
ed53439d9d Build: Added 1.62 Boost version to FindBoost
(cherry picked from commit 7906bdc15e)
2016-10-03 09:26:59 -03:00
Vincent-Michael
604a06eb36 Cmake: Added OpenSSL version required 2016-09-09 00:59:38 +02:00
Shauren
650ab693a8 Buildsystem: Enforce Visual Studio 2015 Update 3 in CMake 2016-08-18 17:45:49 +02:00
Naios
2b97b32d81 Build: Throw a fatal error when the SCRIPTS variable isn't a valid option.
* Catches issues early that are caused through a wrong configuration.
2016-06-23 22:19:37 +02:00
Vincent-Michael
ede8f0ca0a Build/GCC: Enforce version 4.7.2 2016-05-13 18:06:00 +02:00
Vincent-Michael
e43b871137 Build: Added 1.61 Boost version to FindBoost 2016-05-13 17:54:53 +02:00
Naios
2038c31100 Core/Scripting: Disallow the build directory to contain spaces
* I wasn't able to work arround a path which contains spaces,
  since it seems like a CMake specific issue.
* Closes #16947

(cherry picked from commit 42eeb28a8b)
2016-04-14 21:30:43 +02:00
Naios
86344e1843 Core/Build: Workarround for different path handling in CMake < 3.2
* Closes #16951

(cherry picked from commit 81cee23775)
2016-04-12 23:12:01 +02:00
Naios
848b8a4136 Core/Scripts: Split script subdirectories into independent modules
* Makes it possible to define the linkage for every module
* Move the ScriptPCH into the root directory
* Changes the SCRIPTS cmake variable to a string type:
  -> -DSCRIPTS=0 is -DSCRIPTS="minimal-static" now
     (builds commands and spells statically)
  -> -DSCRIPTS=1 is -DSCRIPTS="static" now
     (builds all modules statically)
  -> -DSCRIPTS="dynamic"
     (builds all modules dynamically)
  -> Also the default value which is provided by the SCRIPTS
     variable is overwriteable through the SCRIPTS_COMMANDS,
     SCRIPTS_SPELLS... variable.
2016-04-11 21:13:58 +02:00
Shauren
3ebec1e2ce oops, pushed too soon (now with proper msbuild check) 2016-04-09 00:40:43 +02:00
Shauren
509a27fd51 Buildsystem: Improved logic for _BUILD_DIRECTIVE in msvc builds 2016-04-09 00:37:41 +02:00
Shauren
4a3a178d7f Buildsystem: Initial changes to support building with vs clang toolset 2016-04-05 22:43:41 +02:00
Shauren
03917c79cd Travis: Fixed git version info output 2016-03-31 23:39:53 +02:00
Naios
183f970055 Core/Build: Enable /bigobj for most MSVC builds.
* exluding 32 bit when dyynamic linking is disabled.
2016-03-24 01:28:56 +01:00
Naios
f4e0945b13 Core/Build: Add the possibility to link libraries dynamically.
* makes it possible to access exported singletons from other shared lib's.
* reduces binary size
2016-03-24 01:28:55 +01:00
Shauren
fb8f66f936 Buildsystem: Removed unneeded FindZMQ script 2016-03-22 00:07:04 +01:00
Naios
e9567958fc CMake: Fix detection of AppleClang
* Since CMake 3.0 CMAKE_<LANG>_COMPILER_ID is set to "AppleClang"

(cherry picked from commit 174efd0b6b)
2016-03-19 23:19:58 +01:00
Naios
6eba8493e2 CMake: Disable incremental linking in msvc debug builds
* Requested by Shauren

(cherry picked from commit fbc23c0713)
2016-03-19 23:19:57 +01:00
Naios
90274d0337 CMake: Remove the workaround for source groups below CMake 2.8.12
* Set the default option to hierarchical
* Add a new "hierarchical-folders" option which enables folders inside IDE's.

(cherry picked from commit bf773ccc41)
2016-03-19 23:19:56 +01:00
Naios
0db4f018e8 CMake: Use inherited dependencies in common and tools
(cherry picked from commit abda7a910a)
2016-03-19 23:19:52 +01:00
Naios
853eee75b0 CMake: Add inherited include directories and definitions to precompiled headers
(cherry picked from commit 2413a82b93)
2016-03-19 23:19:51 +01: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
Naios
44223e1af1 CMake: Add the possibility to pass an arbitrary count of targets to add_cxx_pch.
* A PCH is still generated for every target which was passed to the macro
* Resolves naming conflicts when using the same PCH header from multiple projects
* Ref #15671

(cherry picked from commit a974574d6e)
2016-02-22 16:57:55 +01:00
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