We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9a7f8c commit 276a538Copy full SHA for 276a538
CMakeLists.txt
@@ -3,6 +3,16 @@ cmake_minimum_required(VERSION 3.10)
3
# set the project name
4
PROJECT(kleinsHTTP VERSION 0.2.0)
5
6
+option (FORCE_COLORED_OUTPUT "Always produce ANSI-colored output (GNU/Clang only)." FALSE)
7
+
8
+if (${FORCE_COLORED_OUTPUT})
9
+ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
10
+ add_compile_options (-fdiagnostics-color=always)
11
+ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
12
+ add_compile_options (-fcolor-diagnostics)
13
+ endif ()
14
+endif ()
15
16
SET(libsrc
17
./source/sslSocket/sslSocket.cpp
18
./source/httpParser/httpParser.cpp
0 commit comments