summaryrefslogtreecommitdiff
path: root/src/cmake/showoptions.cmake
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2016-08-12 02:37:42 +0200
committerYehonal <yehonal.azeroth@gmail.com>2016-08-12 02:40:23 +0200
commitc1a76e07ff59988c53983aeb5ead7d88d10f3f33 (patch)
treef9d38127a42480480b4620b9422356a86b1b1671 /src/cmake/showoptions.cmake
parent3972a1da631144a83aff7fe76961fdac5dd1c28a (diff)
Another big repo refactoring, should be latest
I've restored old paths for scripts and flattened the src structure
Diffstat (limited to 'src/cmake/showoptions.cmake')
-rw-r--r--src/cmake/showoptions.cmake100
1 files changed, 100 insertions, 0 deletions
diff --git a/src/cmake/showoptions.cmake b/src/cmake/showoptions.cmake
new file mode 100644
index 0000000000..0b935bd6c1
--- /dev/null
+++ b/src/cmake/showoptions.cmake
@@ -0,0 +1,100 @@
+# output generic information about the core and buildtype chosen
+message("")
+message("* AzerothCore revision : ${rev_hash} ${rev_date} (${rev_branch} branch)")
+if( UNIX )
+ message("* AzerothCore buildtype : ${CMAKE_BUILD_TYPE}")
+endif()
+message("")
+
+# output information about installation-directories and locations
+
+message("* Install core to : ${CMAKE_INSTALL_PREFIX}")
+if( UNIX )
+ message("* Install libraries to : ${LIBSDIR}")
+endif()
+
+message("* Install configs to : ${CONF_DIR}")
+add_definitions(-D_CONF_DIR="\\"${CONF_DIR}\\"")
+
+message("")
+
+# Show infomation about the options selected during configuration
+
+if( SERVERS )
+ message("* Build world/auth : Yes (default)")
+else()
+ message("* Build world/authserver : No")
+endif()
+
+if( SCRIPTS )
+ message("* Build with scripts : Yes (default)")
+ add_definitions(-DSCRIPTS)
+else()
+ message("* Build with scripts : No")
+endif()
+
+if( TOOLS )
+ message("* Build map/vmap tools : Yes")
+ add_definitions(-DNO_CORE_FUNCS)
+else()
+ message("* Build map/vmap tools : No (default)")
+endif()
+
+if( USE_COREPCH )
+ message("* Build core w/PCH : Yes (default)")
+else()
+ message("* Build core w/PCH : No")
+endif()
+
+if( USE_SCRIPTPCH )
+ message("* Build scripts w/PCH : Yes (default)")
+else()
+ message("* Build scripts w/PCH : No")
+endif()
+
+if( WITH_WARNINGS )
+ message("* Show all warnings : Yes")
+else()
+ message("* Show compile-warnings : No (default)")
+endif()
+
+if( WITH_COREDEBUG )
+ message("* Use coreside debug : Yes")
+ add_definitions(-DTRINITY_DEBUG)
+else()
+ message("* Use coreside debug : No (default)")
+endif()
+
+if( WIN32 )
+ if( USE_MYSQL_SOURCES )
+ message("* Use MySQL sourcetree : Yes (default)")
+ else()
+ message("* Use MySQL sourcetree : No")
+ endif()
+endif( WIN32 )
+
+if ( WITHOUT_GIT )
+ message("* Use GIT revision hash : No")
+ message("")
+ message(" *** WITHOUT_GIT - WARNING!")
+ message(" *** By choosing the WITHOUT_GIT option you have waived all rights for support,")
+ message(" *** and accept that or all requests for support or assistance sent to the core")
+ message(" *** developers will be rejected. This due to that we will be unable to detect")
+ message(" *** what revision of the codebase you are using in a proper way.")
+ message(" *** We remind you that you need to use the repository codebase and a supported")
+ message(" *** version of git for the revision-hash to work, and be allowede to ask for")
+ message(" *** support if needed.")
+else()
+ message("* Use GIT revision hash : Yes")
+endif()
+
+if ( NOJEM )
+ message("")
+ message(" *** NOJEM - WARNING!")
+ message(" *** jemalloc linking has been disabled!")
+ message(" *** Please note that this is for DEBUGGING WITH VALGRIND only!")
+ message(" *** DO NOT DISABLE IT UNLESS YOU KNOW WHAT YOU'RE DOING!")
+endif()
+
+message("")
+