windows fixes broke linux build

also disable magic resistance in shipspell tests
This commit is contained in:
Enno Rehling 2021-02-21 09:53:30 +01:00
parent 6b5ddc57d9
commit 7dcf9a27e0
2 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,10 @@ endif(WIN32)
project (eressea-server C)
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
if (WIN32)
# make subdirectories build to the same output folders (DLLs):
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
endif (WIN32)
if (MSVC)
find_package (PDCurses)
@ -56,7 +60,6 @@ endif(TOLUA_FOUND)
enable_testing()
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
add_subdirectory (tolua)
add_subdirectory (tools)
add_subdirectory (storage)

View File

@ -15,6 +15,7 @@ function setup()
eressea.settings.set("rules.encounters", "0")
eressea.settings.set("study.produceexp", "0")
eressea.settings.set("rules.peasants.growth.factor", "0")
eressea.settings.set("magic.resist.enable", "0")
end
function disabled_double_default()