diff --git a/vtkm/thirdparty/diy/update.sh b/vtkm/thirdparty/diy/update.sh index 1f86d5504..d76a91546 100755 --- a/vtkm/thirdparty/diy/update.sh +++ b/vtkm/thirdparty/diy/update.sh @@ -8,7 +8,7 @@ readonly name="diy" readonly ownership="Diy Upstream " readonly subtree="vtkm/thirdparty/$name/vtkm$name" readonly repo="https://gitlab.kitware.com/third-party/diy2.git" -readonly tag="for/vtk-m-20200701-master" +readonly tag="for/vtk-m-20200715-master" readonly paths=" cmake include diff --git a/vtkm/thirdparty/diy/vtkmdiy/CMakeLists.txt b/vtkm/thirdparty/diy/vtkmdiy/CMakeLists.txt index 8268eb319..859e5f157 100644 --- a/vtkm/thirdparty/diy/vtkmdiy/CMakeLists.txt +++ b/vtkm/thirdparty/diy/vtkmdiy/CMakeLists.txt @@ -251,8 +251,8 @@ endif() install(TARGETS ${diy_targets} EXPORT ${diy_export_name} DESTINATION ${diy_install_lib_dir}) -export(EXPORT ${diy_export_name} NAMESPACE DIY:: FILE "${PROJECT_BINARY_DIR}/diy-targets.cmake") if (CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) # Only generate these files when diy is the main project - install(EXPORT ${diy_export_name} NAMESPACE DIY:: DESTINATION "." FILE diy-targets.cmake) - install(FILES "${PROJECT_BINARY_DIR}/diy-config.cmake" DESTINATION ".") + export(EXPORT ${diy_export_name} NAMESPACE DIY:: FILE "${PROJECT_BINARY_DIR}/diy-targets.cmake") + install(EXPORT ${diy_export_name} NAMESPACE DIY:: DESTINATION "." FILE diy-targets.cmake) + install(FILES "${PROJECT_BINARY_DIR}/diy-config.cmake" DESTINATION ".") endif() diff --git a/vtkm/thirdparty/diy/vtkmdiy/README.md b/vtkm/thirdparty/diy/vtkmdiy/README.md index a2ab00c94..16df34a67 100644 --- a/vtkm/thirdparty/diy/vtkmdiy/README.md +++ b/vtkm/thirdparty/diy/vtkmdiy/README.md @@ -28,6 +28,12 @@ DIY is a header-only library. It does not need to be built; you can simply include it in your project. The examples can be built using `cmake` from the top-level directory. +## Development + +Development happens in the [DIY repo](https://gitlab.kitware.com/diatomic/diy) +on Kitware's GitLab. Please submit merge requests there. Issues should +be submitted in the GitHub repo. + ## Documentation [Doxygen pages](https://diatomic.github.io/diy) diff --git a/vtkm/thirdparty/diy/vtkmdiy/include/vtkmdiy/time.hpp b/vtkm/thirdparty/diy/vtkmdiy/include/vtkmdiy/time.hpp index 7c2fe49f6..6969aec4e 100644 --- a/vtkm/thirdparty/diy/vtkmdiy/include/vtkmdiy/time.hpp +++ b/vtkm/thirdparty/diy/vtkmdiy/include/vtkmdiy/time.hpp @@ -3,10 +3,10 @@ #ifndef _WIN32 #include -#ifdef __MACH__ +#if defined(__MACH__) && defined(__APPLE__) #include #include -#endif // __MACH__ +#endif // __MACH__ && __APPLE__ #endif // ifndef _WIN32 namespace diy @@ -16,7 +16,7 @@ typedef unsigned long time_type; inline time_type get_time() { -#ifdef __MACH__ // OS X does not have clock_gettime, use clock_get_time +#if defined(__MACH__) && defined(__APPLE__) // OS X does not have clock_gettime, use clock_get_time clock_serv_t cclock; mach_timespec_t ts; host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &cclock);