Created attachment 59971 [details] one attempt to address this, using cmake try_compile instead of regex In newer versions of libjpeg-turbo (as is used in fedora), starting with 1.0.90, the definition of JPEB_LIB_VERSION has moved from jpeglib.h to jconfig.h , which breaks with the current incarnation of cmake regex'ing coming from bug #228483 and the following commit: http://websvn.kde.org/?revision=1100511&view=revision
See also similar issue in digikam, bug #265431
*** This bug has been marked as a duplicate of bug 263897 ***