Skip to content

Commit

Permalink
cmake: make it work under mingw by restricting MSVC flags to an if(MS…
Browse files Browse the repository at this point in the history
…VC) block

closes #179
  • Loading branch information
kaniini committed Mar 13, 2018
1 parent a50bf72 commit 30f7a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -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'
Expand Down

0 comments on commit 30f7a96

Please sign in to comment.