mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Teach Configure.h to store if TBB and CUDA are enabled.
This commit is contained in:
parent
4b70770d48
commit
cf32b430dc
@ -200,6 +200,10 @@ endif(VTKm_BUILD_EXAMPLES)
|
|||||||
|
|
||||||
set(VTKM_USE_DOUBLE_PRECISION ${VTKm_USE_DOUBLE_PRECISION})
|
set(VTKM_USE_DOUBLE_PRECISION ${VTKm_USE_DOUBLE_PRECISION})
|
||||||
set(VTKM_USE_64BIT_IDS ${VTKm_USE_64BIT_IDS})
|
set(VTKM_USE_64BIT_IDS ${VTKm_USE_64BIT_IDS})
|
||||||
|
|
||||||
|
set(VTKM_ENABLE_CUDA ${VTKm_ENABLE_CUDA})
|
||||||
|
set(VTKM_ENABLE_TBB ${VTKm_ENABLE_TBB})
|
||||||
|
|
||||||
set(VTKM_ENABLE_OPENGL_INTEROP ${VTKm_ENABLE_OPENGL_INTEROP})
|
set(VTKM_ENABLE_OPENGL_INTEROP ${VTKm_ENABLE_OPENGL_INTEROP})
|
||||||
|
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/vtkm/internal/Configure.h.in
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/vtkm/internal/Configure.h.in
|
||||||
@ -209,6 +213,10 @@ vtkm_install_headers(
|
|||||||
vtkm/internal ${CMAKE_CURRENT_BINARY_DIR}/vtkm/internal/Configure.h)
|
vtkm/internal ${CMAKE_CURRENT_BINARY_DIR}/vtkm/internal/Configure.h)
|
||||||
|
|
||||||
unset(VTKM_ENABLE_OPENGL_INTEROP)
|
unset(VTKM_ENABLE_OPENGL_INTEROP)
|
||||||
|
|
||||||
|
unset(VTKM_ENABLE_TBB)
|
||||||
|
unset(VTKM_ENABLE_CUDA)
|
||||||
|
|
||||||
unset(VTKM_USE_64BIT_IDS)
|
unset(VTKM_USE_64BIT_IDS)
|
||||||
unset(VTKM_USE_DOUBLE_PRECISION)
|
unset(VTKM_USE_DOUBLE_PRECISION)
|
||||||
|
|
||||||
|
@ -131,6 +131,15 @@
|
|||||||
#define VTKM_THIRDPARTY_POST_INCLUDE
|
#define VTKM_THIRDPARTY_POST_INCLUDE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//Mark if we are building with CUDA enabled
|
||||||
|
#ifndef VTKM_ENABLE_CUDA
|
||||||
|
#cmakedefine VTKM_ENABLE_CUDA
|
||||||
|
#endif
|
||||||
|
//Mark if we are building with TBB enabled
|
||||||
|
#ifndef VTKM_ENABLE_TBB
|
||||||
|
#cmakedefine VTKM_ENABLE_TBB
|
||||||
|
#endif
|
||||||
|
|
||||||
//Mark if we are building with interop enabled
|
//Mark if we are building with interop enabled
|
||||||
#ifndef VTKM_ENABLE_OPENGL_INTEROP
|
#ifndef VTKM_ENABLE_OPENGL_INTEROP
|
||||||
#cmakedefine VTKM_ENABLE_OPENGL_INTEROP
|
#cmakedefine VTKM_ENABLE_OPENGL_INTEROP
|
||||||
|
Loading…
Reference in New Issue
Block a user