mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-24 20:27:40 +00:00
cmake/MSVC: deactivate -Wall which doesn't make much sense for MSVC
This commit is contained in:
parent
d5f928143e
commit
afc463b83f
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user