From 4b96fcfac1f4fe72c60c73a228d063e23824db85 Mon Sep 17 00:00:00 2001 From: Moritz Martinius Date: Fri, 13 Oct 2023 00:44:22 +0200 Subject: [PATCH] ancient meson version on ubuntu 20-04 --- meson.build | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 48dbf36..888c1e7 100644 --- a/meson.build +++ b/meson.build @@ -7,7 +7,13 @@ project('ptprnt', 'cpp', usb_dep = dependency('libusb-1.0') log_dep = dependency('spdlog') pangocairo_dep = dependency('pangocairo') -cli11_dep = dependency('CLI11') + +# CLI11 +cli11_proj = subproject('cli11') +cli11_dep = cli11_proj.get_variable('CLI11_dep') +if not cli11_dep.found() + error('CLI11 not found, can not proceed') +endif incdir = include_directories('src') @@ -45,7 +51,6 @@ ptprnt_lib = library('ptprnt', ptprnt_dep = declare_dependency(include_directories: incdir, link_with: ptprnt_lib) - ptprnt_exe = executable( 'ptprnt', 'src/main.cpp',