diff --git a/quickfix-ffi/quickfix-bind/CMakeLists.txt b/quickfix-ffi/quickfix-bind/CMakeLists.txt index d999871..d50df9d 100644 --- a/quickfix-ffi/quickfix-bind/CMakeLists.txt +++ b/quickfix-ffi/quickfix-bind/CMakeLists.txt @@ -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")