Author: Nilesh Patra
Last-Update: 2022-09-30 16:32:51 +0530
Description: Avoid useless cmake checks and trust the known locations in Debian

--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,7 @@
 project('btllib', 'cpp',
         version : '1.4.9',
         license : 'GPL3',
-        default_options : [ 'cpp_std=c++11', 'warning_level=3', 'werror=true' ],
+        default_options : [ 'cpp_std=c++11', 'warning_level=3', 'werror=false' ],
         meson_version : '>= 0.60.0')
 
 # Configuration
@@ -47,19 +47,7 @@
 threads_dep = dependency('threads')
 openmp_dep = dependency('openmp', required : false)
 
-cmake_options = cmake.subproject_options()
-cmake_options.set_override_option('werror', 'false')
-cmake_options.set_install(false)
-
-cpptoml_subproject = cmake.subproject('cpptoml', options : cmake_options)
-cpptomp_dep = cpptoml_subproject.dependency('cpptoml')
-
-run_command(meson.project_source_root() + '/scripts/prepare-sdsl')
-
-sdsl_subproject = cmake.subproject('sdsl-lite', options : cmake_options)
-sdsl_dep = sdsl_subproject.dependency('sdsl')
-
-deps = [ threads_dep, openmp_dep, cpptomp_dep, sdsl_dep ]
+deps = [ threads_dep, openmp_dep ]
 
 # These are unfortunate hacks. Currently, neither cpptoml nor sdsl-lite install their headers (even when set_install(true) is called), and so we need to do it manually
 meson.add_install_script('scripts/install-cpptoml')
