Skip to content
Snippets Groups Projects
Commit fd5d1935 authored by Teo Mrnjavac's avatar Teo Mrnjavac
Browse files

Fix colors test again.

parent 0849a598
No related branches found
No related tags found
No related merge requests found
if(NOT WIN32)
# [ -t 2 ] tests whether stderr is interactive.
# The negation '!' is because for POSIX shells, 0 is true and 1 is false.
execute_process(COMMAND "[ ! -t 2 ]" RESULT_VARIABLE IS_STDERR_INTERACTIVE)
execute_process(COMMAND test ! -t 2 RESULT_VARIABLE IS_STDERR_INTERACTIVE)
if(IS_STDERR_INTERACTIVE)
string(ASCII 27 Esc)
set(ColorReset "${Esc}[m")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment