Skip to content
Snippets Groups Projects
Commit 3fe08e0d authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'utimensat-depends-on-deploy-target'


99ffa991 cmake: clear some configure checks when the deployment target changes

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !214
parents 5655d533 99ffa991
No related branches found
No related tags found
1 merge request!214cmake: clear some configure checks when the deployment target changes
......@@ -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
......
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