Skip to content

Commit

Permalink
fixup! Pass -Werror in static plugin builds
Browse files Browse the repository at this point in the history
  • Loading branch information
timwoj committed Jan 5, 2024
1 parent 2a946b4 commit c92219a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ZeekPluginStatic.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ function (zeek_add_static_plugin ns name)
zeek_next_pac_block(at_end pacInputs pacRemainder ${pacRemainder})
endwhile ()

if (MSVC)
#set(WERROR_FLAG "/WX")
else ()
set(WERROR_FLAG "-Werror")
if (BUILD_WITH_WERROR)
if (MSVC)
#set(WERROR_FLAG "/WX")
else ()
set(WERROR_FLAG "-Werror")
endif ()
endif ()

# Pass compiler flags, paths and dependencies to the target.
Expand Down

0 comments on commit c92219a

Please sign in to comment.