mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream * upstream-KWSys: KWSys 2021-05-05 (e9ca4104)
This commit is contained in:
@@ -98,6 +98,16 @@ foreach(p
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
# Some configure checks depend upon the deployment target. Clear checks when
|
||||
# the deployment target changes.
|
||||
if (APPLE)
|
||||
if (NOT CMAKE_OSX_DEPLOYMENT_TARGET STREQUAL KWSYS_LAST_OSX_DEPLOYMENT_TARGET)
|
||||
unset(KWSYS_CXX_HAS_UTIMENSAT CACHE)
|
||||
endif ()
|
||||
set(KWSYS_LAST_OSX_DEPLOYMENT_TARGET "${CMAKE_OSX_DEPLOYMENT_TARGET}"
|
||||
CACHE INTERNAL "remember the last deployment target to trigger configure rechecks")
|
||||
endif ()
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# If a namespace is not specified, use "kwsys" and enable testing.
|
||||
# This should be the case only when kwsys is not included inside
|
||||
|
||||
@@ -167,12 +167,19 @@ static int kwsysTerminalStreamIsVT100(FILE* stream, int default_vt100,
|
||||
/* Force color according to http://bixense.com/clicolors/ convention. */
|
||||
{
|
||||
const char* clicolor_force = getenv("CLICOLOR_FORCE");
|
||||
if (clicolor_force && *clicolor_force &&
|
||||
strcmp(clicolor_force, "0") != 0) {
|
||||
if (clicolor_force && strcmp(clicolor_force, "0") != 0) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Disable color according to http://bixense.com/clicolors/ convention. */
|
||||
{
|
||||
const char* clicolor = getenv("CLICOLOR");
|
||||
if (clicolor && strcmp(clicolor, "0") == 0) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* GNU make 4.1+ may tell us that its output is destined for a TTY. */
|
||||
{
|
||||
const char* termout = getenv("MAKE_TERMOUT");
|
||||
|
||||
Reference in New Issue
Block a user