Merge pull request #1304 from davidgyu/dev_cuda_examples_glx_fix

This commit is contained in:
Barry Fowler 2023-06-27 18:13:24 -07:00 committed by GitHub
commit e0eb6a18b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -803,6 +803,11 @@ macro(osd_add_possibly_cuda_executable target folder)
set_target_properties(${target} PROPERTIES FOLDER ${folder})
# Workaround link dependencies for cuda examples on platforms with GLX
if(CUDA_FOUND AND OpenGL_GLX_FOUND)
target_link_libraries(${target} OpenGL::GLX)
endif()
if(CMAKE_COMPILER_IS_ICC)
target_link_libraries(${target} ${ICC_LIBRARIES})
endif()