Skip to content

Commit

Permalink
Fix build problem when incompatible barcode.h is found. (jimevins#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevins committed Feb 6, 2021
1 parent 3c33e3e commit 2da9b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Modules/FindGnuBarcode.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2da9b2d

Please sign in to comment.