diff options
Diffstat (limited to 'cmake/QtCompilerFlags.cmake')
-rw-r--r-- | cmake/QtCompilerFlags.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/QtCompilerFlags.cmake b/cmake/QtCompilerFlags.cmake new file mode 100644 index 0000000000..35733027f5 --- /dev/null +++ b/cmake/QtCompilerFlags.cmake @@ -0,0 +1,6 @@ +# Set warnings. All compilers except MSVC support -Wall -Wextra +if (MSVC) + add_compile_options(/W3) +else() + add_compile_options(-Wall -Wextra) +endif() |