Skip to content

Commit

Permalink
🚨 Enable warning as error for C++ build
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurlm committed Apr 9, 2024
1 parent 5c10c81 commit 2012ce6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions quickfix-ffi/quickfix-bind/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ else()
target_link_libraries(quickfixbind quickfix)
endif()

if(MSVC)
target_compile_options(quickfixbind PRIVATE /W4 /WX)
else()
target_compile_options(quickfixbind PRIVATE -Wall -Werror)
endif()

# Add option if asked
if (HAVE_MYSQL)
target_compile_definitions(quickfixbind PRIVATE "HAVE_MYSQL=1")
Expand Down

0 comments on commit 2012ce6

Please sign in to comment.