Skip to contentSkip to conversation

poppler: Explicitly enable/disable boost together with splash

PATCH New Peter Kjellerstedt 1 participant 1 message Aug 26, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 poppler: Explicitly enable/disable boost together with splash

This avoids the following error when splash is not enabled in PACKAGECONFIG:

-- Could NOT find Boost (missing: Boost_INCLUDE_DIR) (Required is at

     least version "1.58.0")

CMake Error at CMakeLists.txt:196 (message):
-- Boost recommended for Splash. Use ENABLE_BOOST=OFF to skip.

---
 meta-oe/recipes-support/poppler/poppler_21.08.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/poppler/poppler_21.08.0.bb +1 -1
index d3135a44c..1fc3bf3f4 100644
@@ -21,7 +21,7 @@ PACKAGECONFIG[curl] = "-DENABLE_LIBCURL=ON,-DENABLE_LIBCURL=OFF,curl"
 PACKAGECONFIG[openjpeg] = "-DENABLE_LIBOPENJPEG=openjpeg2,-DENABLE_LIBOPENJPEG=none,openjpeg"
 PACKAGECONFIG[qt5] = "-DENABLE_QT5=ON,-DENABLE_QT5=OFF,qtbase qttools-native"
 PACKAGECONFIG[nss] = "-DWITH_NSS3=ON,-DWITH_NSS3=OFF,nss"
-PACKAGECONFIG[splash] = "-DENABLE_SPLASH=ON,-DENABLE_SPLASH=OFF,boost"
+PACKAGECONFIG[splash] = "-DENABLE_SPLASH=ON -DENABLE_BOOST=ON,-DENABLE_SPLASH=OFF -DENABLE_BOOST=OFF,boost"
 
 # surprise - did not expect this to work :)
 inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'cmake_qt5', '', d)}