cmake: make it work under mingw by restricting MSVC flags to an if(MSVC) block
closes #179pull/180/head
parent
a50bf726e0
commit
30f7a96ea2
|
@ -55,7 +55,7 @@ CONFIGURE_FILE(libpkgconf/config.h.cmake.in libpkgconf/config.h @ONLY)
|
|||
|
||||
#-------- Configure common compiler options --------
|
||||
|
||||
IF (WIN32)
|
||||
IF (MSVC)
|
||||
# Make warnings fatal... but ignore C4996: 'strdup' two different ways
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX /wd4996")
|
||||
# Ignore warning C4996: 'strncpy'
|
||||
|
|
Loading…
Reference in New Issue