aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authoripriver <g1ran1q@gmail.com>2020-06-17 14:42:49 +0000
committerCarbenium <carbenium@outlook.com>2020-06-19 15:06:03 +0200
commitdc467ee0f6d0a49be4bd20b621f141228dfec736 (patch)
treeb1b4b8e99b3a0537b324c0e49b7276c3b3112aba /cmake
parentd26c16b8638282459665a9620288dad26b05c499 (diff)
Additional cmake entry for configs
Closes #24812 Co-authored-by: Carbenium <carbenium@outlook.com>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/options.cmake1
-rw-r--r--cmake/showoptions.cmake9
2 files changed, 10 insertions, 0 deletions
diff --git a/cmake/options.cmake b/cmake/options.cmake
index 5d2adeff6f8..af4be4b3332 100644
--- a/cmake/options.cmake
+++ b/cmake/options.cmake
@@ -49,6 +49,7 @@ endif()
option(WITH_WARNINGS "Show all warnings during compile" 0)
option(WITH_COREDEBUG "Include additional debug-code in core" 0)
option(WITH_STRICT_DATABASE_TYPE_CHECKS "Enable strict checking of database field value accessors" 0)
+option(COPY_CONF "Copy authserver and worldserver .conf.dist files to the project dir" 1)
set(WITH_SOURCE_TREE "hierarchical" CACHE STRING "Build the source tree for IDE's.")
set_property(CACHE WITH_SOURCE_TREE PROPERTY STRINGS no flat hierarchical hierarchical-folders)
option(WITHOUT_GIT "Disable the GIT testing routines" 0)
diff --git a/cmake/showoptions.cmake b/cmake/showoptions.cmake
index eab421e0b12..dcbeda554ac 100644
--- a/cmake/showoptions.cmake
+++ b/cmake/showoptions.cmake
@@ -12,6 +12,15 @@ message("* Install core to : ${CMAKE_INSTALL_PREFIX}")
if( UNIX )
message("* Install configs to : ${CONF_DIR}")
endif()
+
+if( COPY_CONF )
+ if( UNIX )
+ message("* Install configs to : ${CONF_DIR}")
+ else()
+ message("* Install configs to : ${CMAKE_INSTALL_PREFIX}")
+ endif()
+endif()
+
message("")
# Show infomation about the options selected during configuration