cmake/MSVC: deactivate -Wall which doesn't make much sense for MSVC

This commit is contained in:
anonymissimus 2013-06-24 21:23:04 +02:00 committed by Alarantalara
parent d5f928143e
commit afc463b83f

View File

@ -229,7 +229,10 @@ endif(MSVC AND NOT DEFINED CXX_FLAGS_MSVC)
set(CXX_FLAGS_PROJECT)
check_compiler_has_flag(CXX_FLAGS_PROJECT "-std=c++98" HAS_COMPILER_FLAG_STD)
check_compiler_has_flag(CXX_FLAGS_PROJECT "-W" HAS_COMPILER_FLAG_W)
# MSVC's -Wall is not like gcc's, it really enables *all* warnings which include zillions for system headers and doesn't make sense.
if(NOT MSVC)
check_compiler_has_flag(CXX_FLAGS_PROJECT "-Wall" HAS_COMPILER_FLAG_WALL)
endif(NOT MSVC)
### Set strict compiler flags.