Skip to content

Commit

Permalink
Fix compiler flags for Windows build.
Browse files Browse the repository at this point in the history
  • Loading branch information
isaachier committed Sep 27, 2017
1 parent 61322ea commit 7b80b25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Expand Up @@ -4,7 +4,9 @@ project(libmill VERSION 1.18 LANGUAGES C)
include(CheckSymbolExists)
include(CheckFunctionExists)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra")
if(CMAKE_C_COMPILER_ID EQUAL "Clang" OR CMAKE_C_COMPILER_ID EQUAL "GNU")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra")
endif()

# static and shared libs
file(GLOB sources *.c dns/*.c)
Expand Down

0 comments on commit 7b80b25

Please sign in to comment.