From 2da9b2d8565110dc02271d059a54b12b3d60b1ff Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Sat, 6 Feb 2021 12:58:32 -0500 Subject: [PATCH] Fix build problem when incompatible barcode.h is found. (#101) --- cmake/Modules/FindGnuBarcode.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Modules/FindGnuBarcode.cmake b/cmake/Modules/FindGnuBarcode.cmake index b8703a2..01ca230 100644 --- a/cmake/Modules/FindGnuBarcode.cmake +++ b/cmake/Modules/FindGnuBarcode.cmake @@ -35,7 +35,7 @@ endif () if (GNUBARCODE_INCLUDE_DIR AND EXISTS "${GNUBARCODE_INCLUDE_DIR}/barcode.h") file (STRINGS "${GNUBARCODE_INCLUDE_DIR}/barcode.h" BARCODE_H REGEX "^#define BARCODE_VERSION *\"[^\"]*\"") - string (REGEX REPLACE "^.*VERSION *\"([^\"]*)\"" "\\1" GNUBARCODE_VERSION_STRING ${BARCODE_H}) + string (REGEX REPLACE "^.*VERSION *\"([^\"]*)\"" "\\1" GNUBARCODE_VERSION_STRING "${BARCODE_H}") endif() # handle the QUIETLY and REQUIRED arguments and set GNUBARCODE_FOUND to TRUE if