Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-01-31 01:58:47 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-01-31 01:58:47 +0400
commitb5c439db4748b334a81b12cd134261915e47b3ab (patch)
treeeda6c21329c001f9698eb3fdd95e7678b038e8f1 /intern
parent4e7b18876c3e995f030f865072cdad0e0ca6ea94 (diff)
Fix cycles windows link errors when building with OSL master branch.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/CMakeLists.txt1
-rw-r--r--intern/cycles/SConscript1
2 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/CMakeLists.txt b/intern/cycles/CMakeLists.txt
index 048a2a50a7f..535239a9205 100644
--- a/intern/cycles/CMakeLists.txt
+++ b/intern/cycles/CMakeLists.txt
@@ -44,6 +44,7 @@ endif()
if(WITH_CYCLES_OSL)
add_definitions(-DWITH_OSL)
+ add_definitions(-DOSL_STATIC_LIBRARY)
include_directories(${OSL_INCLUDES})
endif()
diff --git a/intern/cycles/SConscript b/intern/cycles/SConscript
index 44a17ac0cd6..19af7dede9f 100644
--- a/intern/cycles/SConscript
+++ b/intern/cycles/SConscript
@@ -51,6 +51,7 @@ defs.append('WITH_CUDA')
if env['WITH_BF_CYCLES_OSL']:
defs.append('WITH_OSL')
+ defs.append('OSL_STATIC_LIBRARY')
incs.append(cycles['BF_OSL_INC'])
incs.extend('. bvh render device kernel kernel/osl kernel/svm util subd'.split())