diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ed13bd3..33fde8c2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -312,7 +312,7 @@ if(MSVC) # avoid security warnings for e.g., fopen() used in the examples. add_definitions(-D_CRT_SECURE_NO_WARNINGS) else() - add_definitions(-Wall) + add_compile_options(-Wall) endif() include_directories(${WEBP_DEP_INCLUDE_DIRS}) add_library(webpdecode OBJECT ${WEBP_DEC_SRCS})