Skip to content

Commit

Permalink
Update cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
srdja committed Feb 1, 2024
1 parent d8b6d33 commit 0a9afd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
enable_language(C)

if(UNIX)
set(CFLAGS "-Wall -Werror")
set(CFLAGS "-Wall")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CFLAGS}")

elseif(MSVC)
set(CFLAGS "/W4 /WX")
set(CFLAGS "/W4")
set(CMAKE_C_FLAGS "$CMAKE_CFLAGS ${CFLAGS}")
endif()

Expand Down

0 comments on commit 0a9afd9

Please sign in to comment.