Commit 9bd30571 authored by Haocheng LIU's avatar Haocheng LIU

Fix link errors for vtkm_cont when logging is enabled

parent e88e3ec3
......@@ -175,6 +175,7 @@ add_subdirectory(openmp)
add_subdirectory(cuda)
set(backends )
set (DL_LIBS )
if(TARGET vtkm::tbb)
list(APPEND backends vtkm::tbb)
endif()
......@@ -184,7 +185,10 @@ endif()
if(TARGET vtkm::openmp)
list(APPEND backends vtkm::openmp)
endif()
target_link_libraries(vtkm_cont PUBLIC vtkm_compiler_flags ${backends})
if (VTKm_ENABLE_LOGGING)
list(APPEND DL_LIBS ${CMAKE_DL_LIBS}) # dladdr function
endif()
target_link_libraries(vtkm_cont PUBLIC vtkm_compiler_flags ${backends} ${DL_LIBS})
if(TARGET vtkm_diy)
# This will become a required dependency eventually.
target_link_libraries(vtkm_cont PUBLIC vtkm_diy vtkm_taotuple)
......
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