diff options
author | click <none@none> | 2010-09-12 18:32:49 +0200 |
---|---|---|
committer | click <none@none> | 2010-09-12 18:32:49 +0200 |
commit | 2279102ec901a8d6771af54014276d76ecebcf21 (patch) | |
tree | 52b6bd94db5a99b522c010e6249ff94b0496c470 | |
parent | c5b1861fe9dfe9fd94aa006a7e27f72b32899105 (diff) |
BuildSystem: Make dep/* sources muted during compile (3rd party sources should not show messages during compile, as we're not responsible for them)
Note: Certain functions called within the main src/ subdir will warn due to that we do not ignore them in the CMakeLists.txt yet.
This will be properly handled at an opportune moment.
Buildsystem/CMake: Set default warninglevel to 0 (no warnings shown during compile) - some warnings will still show while we create the "mutelist"
--HG--
branch : trunk
-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") |