From 5498e7f193e2399b8693ef17803f864103307b4b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 16 Apr 2019 06:18:52 +0200 Subject: CMake: add library deps to CMakeLists.txt Tested to work on Linux and macOS. This will be enabled once all platforms are verified. See D4684 --- intern/cycles/device/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'intern/cycles/device/CMakeLists.txt') diff --git a/intern/cycles/device/CMakeLists.txt b/intern/cycles/device/CMakeLists.txt index f0f0390c29b..d804a07bcab 100644 --- a/intern/cycles/device/CMakeLists.txt +++ b/intern/cycles/device/CMakeLists.txt @@ -62,6 +62,16 @@ set(LIB ) +if(WITH_CUDA_DYNLOAD) + list(APPEND LIB + extern_cuew + ) +else() + list(APPEND LIB + ${CUDA_CUDA_LIBRARY} + ) +endif() + add_definitions(${GL_DEFINITIONS}) if(WITH_CYCLES_NETWORK) add_definitions(-DWITH_NETWORK) -- cgit v1.2.3