Avoid deprecated Meson feature

* https://mesonbuild.com/Python-3-module.html

> This module is deprecated and replaced by the python module.
This commit is contained in:
Christopher Dunn 2019-11-04 01:13:59 -08:00
parent fb9aaf8112
commit ec9302c4ed
2 changed files with 2 additions and 3 deletions

View File

@ -65,7 +65,7 @@ _COMPILER_NAME=`basename ${CXX}`
_BUILD_DIR_NAME="build-${BUILD_TYPE}_${LIB_TYPE}_${_COMPILER_NAME}" _BUILD_DIR_NAME="build-${BUILD_TYPE}_${LIB_TYPE}_${_COMPILER_NAME}"
./.travis_scripts/run-clang-format.sh ./.travis_scripts/run-clang-format.sh
meson --buildtype ${BUILD_TYPE} --default-library ${LIB_TYPE} . "${_BUILD_DIR_NAME}" meson --fatal-meson-warnings --werror --buildtype ${BUILD_TYPE} --default-library ${LIB_TYPE} . "${_BUILD_DIR_NAME}"
ninja -v -j 2 -C "${_BUILD_DIR_NAME}" ninja -v -j 2 -C "${_BUILD_DIR_NAME}"
cd "${_BUILD_DIR_NAME}" cd "${_BUILD_DIR_NAME}"

View File

@ -71,8 +71,7 @@ jsoncpp_dep = declare_dependency(
) )
# tests # tests
#python = import('python3').find_python() python = import('python').find_installation()
python = find_program('python3', 'python')
jsoncpp_test = executable( jsoncpp_test = executable(
'jsoncpp_test', 'jsoncpp_test',