[Bf-blender-cvs] [8b235dd2e39] master: makesrna: Fix build error on windows.

Ray Molenkamp noreply at git.blender.org
Thu Feb 21 05:56:25 CET 2019


Commit: 8b235dd2e3995a61e2a7db1ac2bc9eefe1394456
Author: Ray Molenkamp
Date:   Wed Feb 20 21:56:11 2019 -0700
Branches: master
https://developer.blender.org/rB8b235dd2e3995a61e2a7db1ac2bc9eefe1394456

makesrna: Fix build error on windows.

rB94f83a4ebd929e7c4f405b1c78d9db842dfe1689 introduced a dependency on pthreads
but did not add it to the linker inputs.

===================================================================

M	source/blender/makesrna/intern/CMakeLists.txt

===================================================================

diff --git a/source/blender/makesrna/intern/CMakeLists.txt b/source/blender/makesrna/intern/CMakeLists.txt
index 5188ac425bf..255220245e0 100644
--- a/source/blender/makesrna/intern/CMakeLists.txt
+++ b/source/blender/makesrna/intern/CMakeLists.txt
@@ -351,7 +351,7 @@ setup_platform_linker_flags()
 add_executable(makesrna ${SRC} ${SRC_RNA_INC} ${SRC_DNA_INC})
 
 target_link_libraries(makesrna bf_dna)
-target_link_libraries(makesrna bf_dna_blenlib)
+target_link_libraries(makesrna bf_dna_blenlib ${PTHREADS_LIBRARIES})
 
 # Output rna_*_gen.c
 # note (linux only): with crashes try add this after COMMAND: valgrind --leak-check=full --track-origins=yes



More information about the Bf-blender-cvs mailing list