aboutsummaryrefslogtreecommitdiff
path: root/cmake/showoptions.cmake
AgeCommit message (Collapse)Author
2024-09-20Build: Add WITH_WARNINGS_AS_ERRORS cmake option that turns compile warnings ↵Shauren
into compile errors
2024-07-15Build: CMake cleanupShauren
* 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-06-15Build: Normalize executable locations in build directory for all platformsShauren
2024-06-01Build: Remove unneccessary /MP compile option when using ninjaShauren
2023-05-14Core/DBLayer: Relaxed restrictions on which Field class member function can ↵Shauren
be used to access column value from "strict match" to "must not truncate"
2022-03-06CMake: Add WITH_BOOST_STACKTRACE option to use libbacktrace (#26119)Giacomo Pozzoni
* 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 dc78b5a6a7410092df7ac426fbb2f2551072c889)
2022-01-24Core/Metric: Add new cmake option WITH_DETAILED_METRICS to enable more ↵Giacomo Pozzoni
metrics (#25136) * Core/Metric: Add new cmake option WITH_DETAILED_METRICS to enable more metrics Add more detailed metrics in World::UpdateSessions(). * Attempt using C++17 features * Fix cmake typo Co-authored-by: NoName <322016+Faq@users.noreply.github.com> * Fix build with WITHOUT_METRICS * Update Performance profiling dashboard with Update sessions panel * Add panel to show sessions with update time above 100 ms * Move legends on the right and add max update time diff in the legend of sessions Co-authored-by: NoName <322016+Faq@users.noreply.github.com> (cherry picked from commit 36ef487a90d0d14c4da8ce7e19b5916b8b15056c)
2022-01-23dep: Add catch2 unit test framework and wire it upCarbenium
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)
2022-01-23Core/Metric: Add more metrics about World::Update() loop (#25098)Giacomo Pozzoni
* Core/Metric: Add more metrics about World::Update() loop * Add new Performance profiling grafana dashboard * Add new cmake setting WITHOUT_METRICS that disables all metrics As new metrics are added, someone might want to disable them if unused. * Add more metrics about World::Update() loop * Remove old performance profiling features Remove "server set difftime" command, "-RecordUpdateTimeDiffInterval" and "MinRecordUpdateTimeDiff" worldserver config settings and their related code. The whole UpdateTime class could be removed too. * Update and rename 2020_07_99_99_world.sql to 2020_07_24_00_world.sql (cherry picked from commit 3c0ac7302f902d1811d2c215217a3d701f8b5b19)
2022-01-23Dep: Switch to boost process instead of old standalone versionShauren
(cherry picked from commit 524d16739861d0b2279e2270e319b0c77ec9b03b)
2022-01-06fixed indentation for cmake filesipriver
(cherry picked from commit a46d047f9466c6f16597755bb7c771a9d1a147f2)
2022-01-06Additional cmake entry for configsipriver
Closes #24812 Co-authored-by: Carbenium <carbenium@outlook.com> (cherry picked from commit dc467ee0f6d0a49be4bd20b621f141228dfec736)
2022-01-06removed legacy cmake libsdir entry (#24813)Max Drosdo.www
(cherry picked from commit 60e813df6b7dfe599266cf36ddd52ba204917267)
2022-01-04Improve multithreading of mmaps_generator (#25625)Giacomo Pozzoni
* Build/Misc: Add a few *San CMake flags Add the following flags for the related tools: - MSAN for Memory Sanitizer - UBSAN for Undefined Behavior Sanitizer - TSAN for Thread Sanitizer * Remove unused parameter * Fix UBSan reported issue * Disable G3D buffer pools when using Thread Sanitizer as it has its custom locking mechanisms * Code cleanup * Move threads from maps to tiles * Move tile building logic to TileBuilder class * Fix memory leak in TileBuilder * Fix build * Store TileBuilder as raw pointer for now, it will be changed later on to use modern C++ constructs * Fix crash on shutdown * Revert pvs-studio change * Fix generating 1 single tile not closing the program (cherry picked from commit a4e93d779c9638bc0a61cb4405ef28cb935d1065)
2021-12-18Build/Misc: Add ASan CMake flagjackpoz
Allow to enable/disable Address Sanitizer in Clang and GCC from CMake flag "ASAN" of type Boolean. It can be enabled passing -DASAN=TRUE to CMake. (cherry picked from commit 580f40769c6c446284dd1f5738f67fb3ee802956)
2021-09-06Buildsystem: Separate strict database type checks from ↵Shauren
TRINITY_DEBUG/WITH_COREDEBUG option (cherry picked from commit ddd60a948c432aaac1d9a9ff05c9cf22ada35813)
2021-08-08Core/Misc: Add PERFORMANCE_PROFILING CMake optionjackpoz
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. (cherry picked from commit db5c9867e2ffde3657f53bc155b474c5d46884dd)
2021-02-15Dep/Jemalloc: Update to Jemalloc 5.0.1jackpoz
(cherry picked from commit 92cd9bd70db460fdce4af0596cf9d8ee3c3abad5)
2019-11-08Core/Misc: Suppress openssl random generator uninitialized variable errors ↵Shauren
under valgrind
2018-04-02Core/Misc: Removed obsolete NO_CORE_FUNCSShauren
2017-05-17Update showoptions.cmakeAokromes
2016-04-14Core/Scripting: Disallow the build directory to contain spacesNaios
* 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 42eeb28a8b9c1f3ae2d667e4238e956a4a95bd6c)
2016-04-11Core/Scripts: Split script subdirectories into independent modulesNaios
* 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-03-24Core/Build: Add the possibility to link libraries dynamically.Naios
* makes it possible to access exported singletons from other shared lib's. * reduces binary size
2016-03-19CMake: Remove the workaround for source groups below CMake 2.8.12Naios
* Set the default option to hierarchical * Add a new "hierarchical-folders" option which enables folders inside IDE's. (cherry picked from commit bf773ccc417b47d01502c8151cea6188e33e16aa)
2016-01-20Build/Misc: Clarify the meaning of one settingAokromes
(cherry picked from commit 6861deaae261eba6c779be482e834b31ceda27fe)
2015-06-26Core/Misc: Add valgrind support for jemallocjackpoz
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 60a29f761467c0ac76129f2f761ca0de9e7d237d)
2015-03-29CMake: Use source_groups to represent the source treeNaios
* 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 c386711972260aa7b877cdc8cb49d24576ce1902) Conflicts: src/server/authserver/CMakeLists.txt
2014-11-10Core: Nuke authserverDDuarte
It has been replaced by bnetserver since grunt was deprecated
2014-10-19Build/CMake: CMake options cleanup after ↵jackpoz
febb26d4b711762b1ee605705e7fa949b9871df1
2014-09-20Core/Misc: Avoid Helgrind reporting libstdc++ false positive race conditionsjackpoz
2013-10-04Core/Build: Handle USE_SCRIPTPCH cmake flag when SCRIPTS flag is set to FALSEjackpoz
Don't ignore USE_SCRIPTPCH cmake flag if SCRIPTS is set to FALSE; in this case "script" project has only source files related to scripted spells and command scripts and it must be built with precompiled headers if USE_SCRIPTPCH flag is set. This partially reverts 780ed1b01c77ac142e1da5851ff7deb832413b11 .
2013-02-27Buildsystem: Show the revision info as a full string during ↵click
configurationphase as well (additional minichange to previous commit by shauren)
2013-02-11Buildsystem/CMake: Correct a few mistakes regarding WITHOUT_GIT, and add a ↵click
better warning during configure-phase.
2013-01-22Tools/Extractors: Mmap extractors no longer depend on shared and MySQL librariesShauren
2012-03-27Core: Remove the MersenneTwiser-library (SFMT is now considered stable ↵click
enough for full deployment)
2012-03-25Buildsystem/CMake: Add the ability to avoid linking the core with jemalloc ↵click
on linux through using the -DNOJEM parameter. WARNING: This is a developer flag only, and as such NOT documented elsewhere - we need this for valgrind and related tools. Again : YOU HAVE BEEN WARNED! DO NOT USE THIS FLAG UNLESS YOU REALLY KNOW WHAT YOU ARE DOING!
2011-08-04Buildsystem/Windows: Add support for reading commithash and commitdate ↵click
directly from the executable binaries. To view this information, check the "Product Version" field in Properties on the respective daemon. + Fix worldserver/authserver .rc file layouts and content (now adheres to MS standards *sighs*) + Change .serv info output to show corename followed by the commit date and hash + Include showing the versionstring on worldserver startup completion (on Aokromes' request) Thanks to Paradox for bugging me enough about it and the initial pull-request.
2011-05-09Buildsystem: Remove an old remnant not removed in be6b73145bdaf (no use in ↵click
showing a report about installing SQL-files when it's not available anymore...)
2011-04-28Core: get rid of the revision-id once and for all - it's not useful in a ↵click
DVCS at all
2011-01-11Buildsystem: Fix a logical error in git revision-detection, and alsoclick
make the warning text a little bit more "Hello Cpt.Obvious" obvious for users that can't read. (It now includes the word WARNING in the warnings)
2010-11-19Core/Commands: Enable SQL query logging by config and command )patch by leak)click
Closes issue 4853. --HG-- branch : trunk
2010-10-14BuildSystem: Clean up the revision.h generation a tad bitclick
--HG-- branch : trunk
2010-09-29Buildsystem: Overhaul of the CMake buildsystem:click
- utilize CMake for completely generating revision.h (kills off genrev and revision.h targets): - pull and set correct revision-ID/hash from Mercurial (hg) when using regular repository sourcetree - pull and set correct revision-ID/hash from archived releases (when pulled from googlecode) - set and use _BUILD_DIRECTIVE definition (earlier part of revision.h) as compiletime definition - delete genrev and related buildsystems (now deprecated) - Move some files around to adhere to buildsystem structure Thanks to Shauren for figuring out the definition-behaviour for MSVC while he was in the shower --HG-- branch : trunk rename : cmake_uninstall.cmake.in => cmake/platform/unix/cmake_uninstall.in.cmake
2010-09-17Buildsystem/Core: Add new build-flag WITH_SQLDEBUG - adds support for ↵click
enabling/disabling SQL-query logging --HG-- branch : trunk
2010-09-08BuildSystem: Sort out issues with mysql-libraries under *nix (and should now ↵click
also work properly for Win32) - Rename the "EXTERNAL_MYSQL" flag to "USE_MYSQL_SOURCES" to reflect it's PROPER use (and ensure that it's ONLY used on Win32) - Remove a lingering "scripts" definition (the "scripts"-target is always included, but only from compiled parts (broke builds with -DSCRIPTS=0) --HG-- branch : trunk
2010-09-08BuildSystem/Macros: Revert FindMySQL.cmake changes from ea96a5d888 - handled ↵click
with simple if-tests instead BuildSystem: Adjust buildfiles so that they reflect their proper parameters (will change when we've cleaned it up even more) --HG-- branch : trunk
2010-09-07BuildSystem/Windows: * Added 5.1.50 (GA) MySQL client sources for ↵Xanadu
crosscompiling (or lazy) windows people. * Added an option to autosearch for your own installed MySQL as before. Note that default setting is to use the internal MySQL. * You can now build 32-bit even if your MySQL is x64 and vice versa. * Recommended MySQL server version for use with provided MySQL client sources is 5.1.x. * If your server version is different, let CMake autofind and use it instead (check EXTERNAL_MYSQL option) --HG-- branch : trunk
2010-08-28Buildsystem: Split out the resultlist from the options, and print it AFTER ↵click
we've grabbed all the settings --HG-- branch : trunk