diff options
-rw-r--r-- | cmake/options.cmake | 2 | ||||
-rw-r--r-- | dep/CMakeLists.txt | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/cmake/options.cmake b/cmake/options.cmake index 7926fed6cd8..00882d9bcb6 100644 --- a/cmake/options.cmake +++ b/cmake/options.cmake @@ -14,6 +14,6 @@ option(TOOLS "Build map/vmap extraction/assembler tools" option(USE_SCRIPTPCH "Use precompiled headers when compiling scripts" 1) option(USE_COREPCH "Use precompiled headers when compiling servers" 1) option(USE_SFMT "Use SFMT as random numbergenerator" 0) -option(WITH_WARNINGS "Show all warnings during compile" 1) +option(WITH_WARNINGS "Show all warnings during compile" 0) option(WITH_COREDEBUG "Include additional debug-code in core" 0) option(WITH_SQL "Copy SQL files during installation" 0) diff --git a/dep/CMakeLists.txt b/dep/CMakeLists.txt index 0f5ec694a25..8e097ddb129 100644 --- a/dep/CMakeLists.txt +++ b/dep/CMakeLists.txt @@ -8,6 +8,12 @@ # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +if( CMAKE_COMPILER_IS_GNUCXX ) + add_definitions(--no-warnings) +elseif( MSVC ) + add_definitions( /w ) +endif() + if(CMAKE_SYSTEM_NAME MATCHES "Linux") add_subdirectory(jemalloc) set(JEMALLOC_LIB "jemalloc") |