summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2025-08-20 10:19:03 +0300
committerAlexander Golubev <fatzer2@gmail.com>2025-08-21 14:07:20 +0300
commit6a3f400065d7e8a22e135ce4a9d217ff67ae7af2 (patch)
tree7b4bde966ab0013e46bcaa784d1373c0ce3be983 /ConfigureChecks.cmake
parentf5912310449571869d5830bad220bb2b4298bfd8 (diff)
downloadkbarcode-r14.1.x.tar.gz
kbarcode-r14.1.x.zip
Fix build WITH_NATIVE_GNU_BARCODE enabled.r14.1.x
I verified that app compiles and starts fine with the GnuBarcode backend enabled. During runtime no noticeable regressions were spotted. The whole virtual BarkodeEngine::operator=() thing seems to me like quite a lousy design, but I don't feel comfortable enough to rework the code. Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 5602e01ff0a6f599b44cfff35251f959b53b5bbb)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index cc77191..bbcb85b 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -30,10 +30,11 @@ endif( WITH_GCC_VISIBILITY )
if( WITH_NATIVE_GNU_BARCODE )
check_include_file( "barcode.h" HAVE_NATIVE_GNU_BARCODE )
- if( HAVE_NATIVE_GNU_BARCODE )
+ find_library( GNU_BARCODE_LIBRARY barcode )
+ if( HAVE_NATIVE_GNU_BARCODE AND GNU_BARCODE_LIBRARY )
set( _ENABLE_NATIVE_GNU_BARCODE 1 )
else()
- tde_message_fatal( "Barcode is requested, but GNU Barcode header was not found on your system" )
+ tde_message_fatal( "Barcode is requested, but GNU Barcode library was not found on your system" )
endif()
endif( WITH_NATIVE_GNU_BARCODE )