Author: Nilesh Patra Last-Update: 2022-09-30 16:32:51 +0530 Description: Avoid useless cmake checks and trust the known locations in Debian Forwarded: not-needed --- btllib.orig/meson.build +++ btllib/meson.build @@ -1,7 +1,7 @@ project('btllib', 'cpp', version : '1.7.5', license : 'GPL3', - default_options : [ 'cpp_std=c++17', 'warning_level=3', 'werror=true', 'b_coverage=true' ], + default_options : [ 'cpp_std=c++17', 'warning_level=3', 'werror=false', 'b_coverage=false' ], meson_version : '>= 0.60.0') # Configuration @@ -47,25 +47,13 @@ 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', include_type: 'system') - -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') meson.add_install_script('scripts/install-sdsl-lite') -argparse_subproject = cmake.subproject('argparse', options : cmake_options) +argparse_subproject = cmake.subproject('argparse') # , options : cmake_options) argparse_dep = argparse_subproject.dependency('argparse') # Run time dependencies