From 796ca00f3c8ab907d41c8b420723878dc1019795 Mon Sep 17 00:00:00 2001 From: Florent Castelli Date: Sat, 21 Jan 2017 02:36:41 +0100 Subject: [PATCH] cmake: Don't add GCC flag to MSVC in libpng --- Externals/libpng/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Externals/libpng/CMakeLists.txt b/Externals/libpng/CMakeLists.txt index 122007c7c5..8489e6944a 100644 --- a/Externals/libpng/CMakeLists.txt +++ b/Externals/libpng/CMakeLists.txt @@ -18,5 +18,7 @@ set(SRCS pngwtran.c pngwutil.c ) -add_definitions(-Wno-self-assign) +if(NOT MSVC) + add_definitions(-Wno-self-assign) +endif() add_library(png STATIC ${SRCS})