mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
diy 2020-07-15 (4ea1241e)
Code extracted from: https://gitlab.kitware.com/third-party/diy2.git at commit 4ea1241e7d9d4f20b6f359dcfec1d52d3ad50bde (for/vtk-m-20200715-master).
This commit is contained in:
parent
b0895eca99
commit
ec6fef4472
@ -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()
|
||||
|
@ -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)
|
||||
|
@ -3,10 +3,10 @@
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <sys/time.h>
|
||||
#ifdef __MACH__
|
||||
#if defined(__MACH__) && defined(__APPLE__)
|
||||
#include <mach/clock.h>
|
||||
#include <mach/mach.h>
|
||||
#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);
|
||||
|
Loading…
Reference in New Issue
Block a user