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

Fix check in CMakeColors.

parent 36e8ed5f
No related branches found
No related tags found
No related merge requests found
if(NOT WIN32) if(NOT WIN32)
# [ -t 2 ] tests whether stderr is interactive. # [ -t 2 ] tests whether stderr is interactive.
# The negation '!' is because for POSIX shells, 0 is true and 1 is false. # 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 "[ ! -t 2 ]" RESULT_VARIABLE IS_STDERR_INTERACTIVE)
if(IS_STDERR_INTERACTIVE) if(IS_STDERR_INTERACTIVE)
string(ASCII 27 Esc) string(ASCII 27 Esc)
set(ColorReset "${Esc}[m") 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