diff options
Diffstat (limited to 'source/blenderplayer/CMakeLists.txt')
-rw-r--r-- | source/blenderplayer/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blenderplayer/CMakeLists.txt b/source/blenderplayer/CMakeLists.txt index f630befdf5f..e8c710e68ae 100644 --- a/source/blenderplayer/CMakeLists.txt +++ b/source/blenderplayer/CMakeLists.txt @@ -255,5 +255,9 @@ setup_liblinks(blenderplayer) # We put CLEW and CUEW here because OPENSUBDIV_LIBRARIES dpeends on them.. if(WITH_CYCLES OR WITH_COMPOSITOR OR WITH_OPENSUBDIV) target_link_libraries(blenderplayer "extern_clew") - target_link_libraries(blenderplayer "extern_cuew") + if(WITH_CUDA_DYNLOAD) + target_link_libraries(blenderplayer "extern_cuew") + else() + target_link_libraries(${target} ${CUDA_CUDA_LIBRARY}) + endif() endif() |