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
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2019-02-21 20:02:54 +0300
committerRay Molenkamp <github@lazydodo.com>2019-02-21 20:02:54 +0300
commit1999651da5c1bc8cda4d56c88867d0222ec57e3a (patch)
tree751de50b741bb261411441a34ed3791325b1de93 /source/blender/makesrna/intern/CMakeLists.txt
parentfc55861efaa2b85cc7b2e11a9dabc2712cc8b8da (diff)
makesrna: Fix windows build.
makesrna requires the pthread dll to be available before it can run.
Diffstat (limited to 'source/blender/makesrna/intern/CMakeLists.txt')
-rw-r--r--source/blender/makesrna/intern/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/CMakeLists.txt b/source/blender/makesrna/intern/CMakeLists.txt
index 255220245e0..5dc372bf8c1 100644
--- a/source/blender/makesrna/intern/CMakeLists.txt
+++ b/source/blender/makesrna/intern/CMakeLists.txt
@@ -375,3 +375,11 @@ set(SRC
add_definitions(${GL_DEFINITIONS})
blender_add_lib(bf_rna "${SRC}" "${INC}" "${INC_SYS}")
+
+#makesrna needs the prhreads dll to properly run on windows
+if(WIN32)
+ ADD_CUSTOM_COMMAND(TARGET bf_rna
+ PRE_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/pthreads/lib/pthreadVC3.dll $<TARGET_FILE_DIR:makesrna>/
+ )
+endif()