qt5base-lts/cmake/QtCompilerFlags.cmake
Albert Astals Cid a25f9a1507 cmake: Start adding compiler flags
Only has warnings for now

Next to come is the support for developer-build and enabling Werror

Change-Id: I8070dc06eb439c2a03007cce975c8147ff7e1582
Reviewed-by: Kevin Funk <kevin.funk@kdab.com>
2019-02-21 13:51:19 +00:00

7 lines
157 B
CMake

# Set warnings. All compilers except MSVC support -Wall -Wextra
if (MSVC)
add_compile_options(/W3)
else()
add_compile_options(-Wall -Wextra)
endif()