cmake: Don't add GCC flag to MSVC in libpng

This commit is contained in:
Florent Castelli 2017-01-21 02:36:41 +01:00
parent e03690f1f0
commit 796ca00f3c
1 changed files with 3 additions and 1 deletions

View File

@ -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})