mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Fix some minor issues with move to glut CMake component
I was using GLUT_LIBRARY instead of GLUT_LIBRARIES, and there was an extra use of GLUT_INCLUDE_DIR that should not have been there.
This commit is contained in:
parent
039efd6b7e
commit
fbb061d661
@ -220,7 +220,7 @@ macro(vtkm_configure_component_GLUT)
|
||||
vtkm_finish_configure_component(GLUT
|
||||
DEPENDENT_VARIABLES VTKm_OpenGL_FOUND GLUT_FOUND
|
||||
ADD_INCLUDES ${GLUT_INCLUDE_DIR}
|
||||
ADD_LIBRARIES ${GLUT_LIBRARY}
|
||||
ADD_LIBRARIES ${GLUT_LIBRARIES}
|
||||
)
|
||||
endmacro(vtkm_configure_component_GLUT)
|
||||
|
||||
|
@ -35,7 +35,7 @@ if(VTKm_OpenGL_FOUND AND VTKm_GLUT_FOUND)
|
||||
# Cuda compiles do not respect target_include_directories
|
||||
cuda_include_directories(${VTKm_INCLUDE_DIRS})
|
||||
cuda_add_executable(StreamLineUniformGrid_CUDA StreamLineUniformGrid.cu)
|
||||
target_include_directories(StreamLineUniformGrid_SERIAL PRIVATE ${VTKm_INCLUDE_DIRS} ${GLUT_INCLUDE_DIR})
|
||||
target_include_directories(StreamLineUniformGrid_SERIAL PRIVATE ${VTKm_INCLUDE_DIRS})
|
||||
target_link_libraries(StreamLineUniformGrid_CUDA ${VTKm_LIBRARIES})
|
||||
target_compile_options(StreamLineUniformGrid_CUDA PRIVATE ${VTKm_COMPILE_OPTIONS})
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user