From fd352cf8f613212599fab7e6547510ac422b7f4e Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 29 Aug 2018 18:32:27 +0200 Subject: [PATCH] Buildbot: Tweak configuration to actually ve successful in chroot --- build_files/buildbot/config/blender_linux.cmake | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/build_files/buildbot/config/blender_linux.cmake b/build_files/buildbot/config/blender_linux.cmake index f4659b2ce81..c3da19451b5 100644 --- a/build_files/buildbot/config/blender_linux.cmake +++ b/build_files/buildbot/config/blender_linux.cmake @@ -168,9 +168,19 @@ set(LIBDIR "/opt/blender-deps/${LIBDIR_NAME}" CACHE BOOL "" FORCE) # TODO(sergey): Remove once Python is oficially bumped to 3.7. set(PYTHON_VERSION 3.7 CACHE BOOL "" FORCE) -# Ensure specific configuration of various libraries. +# Platform specific configuration, to ensure static linking against everything. + set(Boost_USE_STATIC_LIBS ON CACHE BOOL "" FORCE) +# Force using our precompiled openjpeg library. +# +# Also, FindOpenJPEG is stupid and is not aware about library called libopenjp2. +set(WITH_SYSTEM_OPENJPEG ON CACHE BOOL "" FORCE) +set(OPENJPEG_LIBRARY "${LIBDIR}/openjpeg/lib/libopenjp2.a" CACHE BOOL "" FORCE) + +set(PCRE_INCLUDE_DIR "/usr/include" CACHE STRING "" FORCE) +set(PCRE_LIBRARY "${LIBDIR}/opencollada/lib/libpcre.a" CACHE STRING "" FORCE) + endif() # Additional linking libraries