From 967eba2f03f0b9d2f5456540205657d9225deaa6 Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Sun, 22 May 2022 14:21:21 +0200 Subject: [PATCH] Cmake make colored output --- GCryptLib/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 +) +