Commit 7fd7336a authored by Allison Vacanti's avatar Allison Vacanti

Don't version include directory under build tree.

This is causing issues when building ParaView with VTK-m and VTK
kits enabled.
parent ab10ff3b
......@@ -57,7 +57,7 @@ if (NOT DEFINED VTKm_INSTALL_CMAKE_MODULE_DIR)
set(VTKm_INSTALL_CMAKE_MODULE_DIR "share/vtkm-${VTKm_VERSION_MAJOR}.${VTKm_VERSION_MINOR}/cmake")
endif()
set(VTKm_BINARY_INCLUDE_DIR "${VTKm_BINARY_DIR}/include/vtkm-${VTKm_VERSION_MAJOR}.${VTKm_VERSION_MINOR}")
set(VTKm_BINARY_INCLUDE_DIR "${VTKm_BINARY_DIR}/include")
set(VTKm_EXPORT_NAME "VTKmTargets")
......@@ -78,8 +78,8 @@ add_library(vtkm INTERFACE)
target_compile_features(vtkm INTERFACE cxx_auto_type)
target_include_directories(vtkm INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include/vtkm-${VTKm_VERSION_MAJOR}.${VTKm_VERSION_MINOR}>
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${VTKm_BINARY_INCLUDE_DIR}>
$<INSTALL_INTERFACE:${VTKm_INSTALL_INCLUDE_DIR}>
)
install(TARGETS vtkm EXPORT ${VTKm_EXPORT_NAME})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment