diff --git a/CMakeLists.txt b/CMakeLists.txt index 600206a..62a8689 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,3 +29,10 @@ target_precompile_headers(sv-bugpoint PUBLIC ) + +if (NOT MSVC) + target_compile_options(sv-bugpoint PRIVATE -Wall -Wextra -pedantic -Wno-reorder -Wno-unused-parameter) + if(DEFINED ENV{CI}) + target_compile_options(sv-bugpoint PRIVATE -Werror) + endif() +endif()