diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 022fa7f..f29ccff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,12 @@ endif() set(CMAKE_CXX_STANDARD 11) +if(MSVC) + add_compile_options(/W4 /WX) +else() + add_compile_options(-Wall -Wextra -pedantic -Werror -Wno-unknown-pragmas) +endif() + # Check if compiler supports AVX512 try_compile(INTGEMM_COMPILER_SUPPORTS_AVX512 ${CMAKE_CURRENT_BINARY_DIR}/compile_tests |