diff --git a/GCryptLib/CMakeLists.txt b/GCryptLib/CMakeLists.txt index 0efcb68..26fdf1a 100644 --- a/GCryptLib/CMakeLists.txt +++ b/GCryptLib/CMakeLists.txt @@ -34,6 +34,12 @@ target_include_directories(test PRIVATE include ) +target_compile_options(test PRIVATE + -Werror + -fdiagnostics-color=always +) + + ## Move test images to build dir ADD_CUSTOM_COMMAND( TARGET ${PROJECT_NAME} POST_BUILD @@ -55,3 +61,8 @@ target_include_directories(exec PRIVATE include ) +target_compile_options(exec PRIVATE + -Werror + -fdiagnostics-color=always +) +