diff options
author | KWSys Upstream <kwrobot@kitware.com> | 2017-09-21 11:13:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-21 11:17:30 (GMT) |
commit | d49b95b8048b59c1e7867698a95cbdcd8e0a3980 (patch) | |
tree | e3cb64d32621635ba922aef12973acf196506a71 | |
parent | 38b8017fa6ca017867a1fab2c01b94c8d5bb15be (diff) | |
download | CMake-d49b95b8048b59c1e7867698a95cbdcd8e0a3980.zip CMake-d49b95b8048b59c1e7867698a95cbdcd8e0a3980.tar.gz CMake-d49b95b8048b59c1e7867698a95cbdcd8e0a3980.tar.bz2 |
KWSys 2017-09-21 (ff912e4d)
Code extracted from:
https://gitlab.kitware.com/utils/kwsys.git
at commit ff912e4d39e0a580b9d9be5430fffa46c0e1f94d (master).
Upstream Shortlog
-----------------
Brad King (1):
aa9f3a82 macOS: Account for deployment target when checking for utimensat
-rw-r--r-- | kwsysPlatformTestsCXX.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kwsysPlatformTestsCXX.cxx b/kwsysPlatformTestsCXX.cxx index 01c6951..e67d436 100644 --- a/kwsysPlatformTestsCXX.cxx +++ b/kwsysPlatformTestsCXX.cxx @@ -265,6 +265,12 @@ int main() #ifdef TEST_KWSYS_CXX_HAS_UTIMENSAT #include <fcntl.h> #include <sys/stat.h> +#if defined(__APPLE__) +#include <AvailabilityMacros.h> +#if MAC_OS_X_VERSION_MIN_REQUIRED < 101300 +#error "utimensat not available on macOS < 10.13" +#endif +#endif int main() { struct timespec times[2] = { { 0, UTIME_OMIT }, { 0, UTIME_NOW } }; |