summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
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 )