mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
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:
parent
c462cd0065
commit
650eac5542
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user