cmake: don't set -Wall with MSVC

take the generator default (/W3); /Wall produces too many warnings that
can't be acted on.

Change-Id: I112d0f46456af2758ddfee6becc098447ca50b6f
This commit is contained in:
James Zern 2017-11-15 18:29:15 -08:00
parent c462cd0065
commit 650eac5542

View File

@ -103,7 +103,9 @@ endforeach()
### Define the mandatory libraries.
# Build the webpdecoder library.
add_definitions(-Wall)
if(NOT MSVC)
add_definitions(-Wall)
endif()
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${WEBP_DEP_INCLUDE_DIRS})
add_library(webpdecode OBJECT ${WEBP_DEC_SRCS})
add_library(webpdspdecode OBJECT ${WEBP_DSP_COMMON_SRCS} ${WEBP_DSP_DEC_SRCS})