[Bf-blender-cvs] [19361bf2f46] master: Fix eigen/openmp link error in some build configurations

Brecht Van Lommel noreply at git.blender.org
Sun Feb 9 16:30:03 CET 2020


Commit: 19361bf2f46577e19412d3ad0f75787b178c2f69
Author: Brecht Van Lommel
Date:   Sun Feb 9 16:29:07 2020 +0100
Branches: master
https://developer.blender.org/rB19361bf2f46577e19412d3ad0f75787b178c2f69

Fix eigen/openmp link error in some build configurations

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

M	intern/eigen/CMakeLists.txt

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

diff --git a/intern/eigen/CMakeLists.txt b/intern/eigen/CMakeLists.txt
index 70088d080e1..f5ccb6efb67 100644
--- a/intern/eigen/CMakeLists.txt
+++ b/intern/eigen/CMakeLists.txt
@@ -43,4 +43,10 @@ set(SRC
 set(LIB
 )
 
+if(WITH_OPENMP_STATIC)
+  list(APPEND LIB
+    ${OpenMP_LIBRARIES}
+  )
+endif()
+
 blender_add_lib(bf_intern_eigen "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")



More information about the Bf-blender-cvs mailing list