mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-09-18 22:00:05 +00:00
Merge pull request #1304 from davidgyu/dev_cuda_examples_glx_fix
This commit is contained in:
commit
e0eb6a18b5
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user