diff options
author | Ray Molenkamp <github@lazydodo.com> | 2019-02-21 20:02:54 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2019-02-21 20:02:54 +0300 |
commit | 1999651da5c1bc8cda4d56c88867d0222ec57e3a (patch) | |
tree | 751de50b741bb261411441a34ed3791325b1de93 /source/blender/makesrna/intern/CMakeLists.txt | |
parent | fc55861efaa2b85cc7b2e11a9dabc2712cc8b8da (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.txt | 8 |
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() |