diff -Nrup a/intern/cycles/bvh/CMakeLists.txt b/intern/cycles/bvh/CMakeLists.txt --- a/intern/cycles/bvh/CMakeLists.txt 2019-02-19 10:08:43.000000000 +0100 +++ b/intern/cycles/bvh/CMakeLists.txt 2019-02-19 10:45:59.923215016 +0100 @@ -38,4 +38,4 @@ set(SRC_HEADERS include_directories(${INC}) include_directories(SYSTEM ${INC_SYS}) -cycles_add_library(cycles_bvh ${SRC} ${SRC_HEADERS}) +cycles_add_library(cycles_bvh STATIC ${SRC} ${SRC_HEADERS}) diff -Nrup a/intern/cycles/device/CMakeLists.txt b/intern/cycles/device/CMakeLists.txt --- a/intern/cycles/device/CMakeLists.txt 2019-02-19 10:08:43.000000000 +0100 +++ b/intern/cycles/device/CMakeLists.txt 2019-02-19 10:46:27.874216243 +0100 @@ -77,4 +77,4 @@ endif() include_directories(${INC}) include_directories(SYSTEM ${INC_SYS}) -cycles_add_library(cycles_device ${SRC} ${SRC_OPENCL} ${SRC_HEADERS}) +cycles_add_library(cycles_device STATIC ${SRC} ${SRC_OPENCL} ${SRC_HEADERS}) diff -Nrup a/intern/cycles/graph/CMakeLists.txt b/intern/cycles/graph/CMakeLists.txt --- a/intern/cycles/graph/CMakeLists.txt 2019-02-19 10:08:43.000000000 +0100 +++ b/intern/cycles/graph/CMakeLists.txt 2019-02-19 10:50:30.707226894 +0100 @@ -19,4 +19,4 @@ set(SRC_HEADERS include_directories(${INC}) include_directories(SYSTEM ${INC_SYS}) -cycles_add_library(cycles_graph ${SRC} ${SRC_HEADERS}) +cycles_add_library(cycles_graph STATIC ${SRC} ${SRC_HEADERS}) diff -Nrup a/intern/cycles/kernel/CMakeLists.txt b/intern/cycles/kernel/CMakeLists.txt --- a/intern/cycles/kernel/CMakeLists.txt 2019-02-19 10:08:43.000000000 +0100 +++ b/intern/cycles/kernel/CMakeLists.txt 2019-02-19 10:47:10.967218133 +0100 @@ -518,6 +518,7 @@ if(CXX_HAS_AVX2) endif() cycles_add_library(cycles_kernel + STATIC ${SRC_CPU_KERNELS} ${SRC_CUDA_KERNELS} ${SRC_OPENCL_KERNELS} diff -Nrup a/intern/cycles/kernel/osl/CMakeLists.txt b/intern/cycles/kernel/osl/CMakeLists.txt --- a/intern/cycles/kernel/osl/CMakeLists.txt 2019-02-19 10:08:43.000000000 +0100 +++ b/intern/cycles/kernel/osl/CMakeLists.txt 2019-02-19 10:47:37.491219296 +0100 @@ -30,4 +30,4 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} include_directories(${INC}) include_directories(SYSTEM ${INC_SYS}) -cycles_add_library(cycles_kernel_osl ${SRC} ${HEADER_SRC}) +cycles_add_library(cycles_kernel_osl STATIC ${SRC} ${HEADER_SRC}) diff -Nrup a/intern/cycles/render/CMakeLists.txt b/intern/cycles/render/CMakeLists.txt --- a/intern/cycles/render/CMakeLists.txt 2019-02-19 10:08:43.000000000 +0100 +++ b/intern/cycles/render/CMakeLists.txt 2019-02-19 10:48:01.334220342 +0100 @@ -78,4 +78,4 @@ include_directories(SYSTEM ${INC_SYS}) add_definitions(${GL_DEFINITIONS}) -cycles_add_library(cycles_render ${SRC} ${SRC_HEADERS}) +cycles_add_library(cycles_render STATIC ${SRC} ${SRC_HEADERS}) diff -Nrup a/intern/cycles/subd/CMakeLists.txt b/intern/cycles/subd/CMakeLists.txt --- a/intern/cycles/subd/CMakeLists.txt 2019-02-19 10:08:43.000000000 +0100 +++ b/intern/cycles/subd/CMakeLists.txt 2019-02-19 10:48:22.400221266 +0100 @@ -24,4 +24,4 @@ set(SRC_HEADERS include_directories(${INC}) include_directories(SYSTEM ${INC_SYS}) -cycles_add_library(cycles_subd ${SRC} ${SRC_HEADERS}) +cycles_add_library(cycles_subd STATIC ${SRC} ${SRC_HEADERS}) diff -Nrup a/intern/cycles/util/CMakeLists.txt b/intern/cycles/util/CMakeLists.txt --- a/intern/cycles/util/CMakeLists.txt 2019-02-19 10:08:43.000000000 +0100 +++ b/intern/cycles/util/CMakeLists.txt 2019-02-19 10:48:46.542222325 +0100 @@ -146,4 +146,4 @@ include_directories(SYSTEM ${INC_SYS}) add_definitions(${GL_DEFINITIONS}) -cycles_add_library(cycles_util ${SRC} ${SRC_HEADERS}) +cycles_add_library(cycles_util STATIC ${SRC} ${SRC_HEADERS})