mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 01:37:00 +00:00
Removed some useless CMake options
Removed commented "possible" bindings folder
This commit is contained in:
parent
5a84aa1fd6
commit
5feb433ada
2 changed files with 5 additions and 14 deletions
|
|
@ -27,7 +27,6 @@ set(CMAKE_MODULE_PATH
|
|||
)
|
||||
|
||||
# define all options here
|
||||
option(DEBUG "Debug mode" OFF)
|
||||
option(ACE_USE_EXTERNAL "Use external ACE" OFF)
|
||||
if(PCHSupport_FOUND AND WIN32) # TODO: why only enable it on windows by default?
|
||||
option(PCH "Use precompiled headers" ON)
|
||||
|
|
@ -46,8 +45,8 @@ message(
|
|||
"This script builds the MaNGOS server.
|
||||
Options that can be used in order to configure the process:
|
||||
CMAKE_INSTALL_PREFIX Path where the server should be installed to
|
||||
CMAKE_BUILD_TYPE Sets build type (Release;Debug;...)
|
||||
PCH Use precompiled headers
|
||||
DEBUG Debug mode
|
||||
INCLUDE_BINDINGS_DIR Include a script library in src/bindings/ with the
|
||||
defined name. the name must corespond to the name of
|
||||
the folder and the folder must contain a valid
|
||||
|
|
@ -55,7 +54,7 @@ message(
|
|||
ACE_USE_EXTERNAL Use external ACE
|
||||
To set an option simply type -D<OPTION>=<VALUE> after 'cmake <srcs>'.
|
||||
Also, you can specify the generator with -G. see 'cmake --help' for more details
|
||||
For example: cmake .. -DDEBUG=1 -DCMAKE_INSTALL_PREFIX=/opt/mangos"
|
||||
For example: cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/opt/mangos"
|
||||
)
|
||||
message("")
|
||||
|
||||
|
|
@ -236,13 +235,6 @@ else()
|
|||
message(STATUS "Use PCH : No")
|
||||
endif()
|
||||
|
||||
if(DEBUG)
|
||||
message(STATUS "Build in debug-mode : Yes")
|
||||
set(CMAKE_BUILD_TYPE Debug)
|
||||
else()
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
message(STATUS "Build in debug-mode : No (default)")
|
||||
endif()
|
||||
# Handle debugmode compiles (this will require further work for proper WIN32-setups)
|
||||
if(UNIX)
|
||||
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g")
|
||||
|
|
@ -260,8 +252,8 @@ elseif(WIN32)
|
|||
if(MSVC AND NOT CMAKE_GENERATOR MATCHES "Visual Studio 7")
|
||||
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /MP")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /wd4996 /wd4355 /wd4244 /wd4267 /MP")
|
||||
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /MP")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /MP")
|
||||
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /W3 /MP")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /W3 /MP")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -19,5 +19,4 @@
|
|||
|
||||
if(INCLUDE_BINDINGS_DIR)
|
||||
add_subdirectory(${INCLUDE_BINDINGS_DIR})
|
||||
endif()
|
||||
# add_subdirectory(scripts)
|
||||
endif()
|
||||
Loading…
Add table
Add a link
Reference in a new issue