summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-05 14:17:30 (GMT)
committerBrad King <brad.king@kitware.com>2021-05-05 14:17:30 (GMT)
commit4b73f113ba546dcfcfd3aa8e95e03ac479c9c2cb (patch)
tree4a1af28f56b39927a2f9d4f420ac1626c41cddd4 /Source/kwsys/CMakeLists.txt
parent41f9486e61026275fcb9f559a6bc0fd36dcc48e6 (diff)
parent04c6e736f65306f434d99e2f4d6c365a9cc5201b (diff)
downloadCMake-4b73f113ba546dcfcfd3aa8e95e03ac479c9c2cb.zip
CMake-4b73f113ba546dcfcfd3aa8e95e03ac479c9c2cb.tar.gz
CMake-4b73f113ba546dcfcfd3aa8e95e03ac479c9c2cb.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream * upstream-KWSys: KWSys 2021-05-05 (e9ca4104)
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r--Source/kwsys/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index bf8543e..ef615b3 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -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