diff options
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4c1b42618e..3f0f9d2b61 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -8,6 +8,21 @@ # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -add_subdirectory(genrev) -add_subdirectory(server) +# Enforce compileparameters for corebuilds under GCC +# This to stop a few silly crashes that could have been avoided IF people +# weren't doing some -O3 psychooptimizations etc. +if(CMAKE_COMPILER_IS_GNUCXX AND NOT MINGW) + add_definitions(-fno-delete-null-pointer-checks) +endif() + +if( SERVERS ) + set(sources_windows_Debugging + ${CMAKE_SOURCE_DIR}/modules/acore/framework/Debugging/WheatyExceptionReport.cpp + ${CMAKE_SOURCE_DIR}/modules/acore/framework/Debugging/WheatyExceptionReport.h + ) + add_subdirectory(game) + add_subdirectory(authserver) + add_subdirectory(scripts) + add_subdirectory(worldserver) +endif() |