summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2025-08-20 10:19:03 +0300
committerFat-Zer <fatzer2@gmail.com>2025-08-21 11:06:58 +0000
commit5602e01ff0a6f599b44cfff35251f959b53b5bbb (patch)
tree1001e4251a3faed49e76477585479c2ea3a1c628 /ConfigureChecks.cmake
parent87107616b88b2b14f31806e1e77abf458a8875b8 (diff)
downloadkbarcode-master.tar.gz
kbarcode-master.zip
Fix build WITH_NATIVE_GNU_BARCODE enabled.HEADmaster
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>
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 )