From 19361bf2f46577e19412d3ad0f75787b178c2f69 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 9 Feb 2020 16:29:07 +0100 Subject: Fix eigen/openmp link error in some build configurations --- intern/eigen/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) 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}") -- cgit v1.2.3