From 30f7a96ea24a5316a3d9b0db66ad904f76c5cdd8 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Tue, 13 Mar 2018 13:34:35 -0500 Subject: [PATCH] cmake: make it work under mingw by restricting MSVC flags to an if(MSVC) block closes #179 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 60d92bd..0d924bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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'