cmake: make it work under mingw by restricting MSVC flags to an if(MSVC) block

closes #179
pull/180/head
William Pitcock 2018-03-13 13:34:35 -05:00
parent a50bf726e0
commit 30f7a96ea2
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ CONFIGURE_FILE(libpkgconf/config.h.cmake.in libpkgconf/config.h @ONLY)
#-------- Configure common compiler options -------- #-------- Configure common compiler options --------
IF (WIN32) IF (MSVC)
# Make warnings fatal... but ignore C4996: 'strdup' two different ways # Make warnings fatal... but ignore C4996: 'strdup' two different ways
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX /wd4996") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX /wd4996")
# Ignore warning C4996: 'strncpy' # Ignore warning C4996: 'strncpy'