Created attachment 139240 [details] questionably useful patch It seems that cmake/modules/FindLIBOPENJPEG.cmake checks LIBOPENJPEG2_INCLUDE_DIR but sets LIBOPENJPEG2_INCLUDE_DIRS (note: plural-ness), preventing the cmake cache from working correctly. The check should be one the plural one, I believe. A pretty trivial fix. I've tried doing the find+replace myself, and nothing went wrong when building xournalpp. I attached a patch for this one-liner, though it may be easier to just apply the change manually...
actually your patch breaks the build because fixing the if makes that we stop defining USE_OPENJPEG2 :D Since the cache if has been not working for a long time, i'll just remove it. Thanks for the heads up :)
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.