Skip to content

Commit 1b76598

Browse files
committed
Update to use bfg9000 v0.5 features
1 parent 275b012 commit 1b76598

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

build.bfg

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# -*- python -*-
22

3-
from os.path import splitext
4-
5-
bfg9000_required_version('>=0.4.0')
3+
bfg9000_required_version('>=0.5.0')
64
project('bencode_hpp', version='0.2-dev')
75

86
global_options([opts.std(argv.std)], lang='c++')
@@ -11,7 +9,7 @@ includes = header_directory('include', include='*.hpp')
119

1210
install(includes)
1311

14-
test_files = find_files('test', '*.cpp')
12+
test_files = find_paths('test', '*.cpp')
1513
boost = boost_package(version='>=1.23')
1614

1715
try:
@@ -20,7 +18,7 @@ try:
2018

2119
for src in test_files:
2220
test(executable(
23-
splitext(src)[0],
21+
src.stripext().suffix,
2422
files=src,
2523
includes=includes,
2624
packages=[boost, libmettle]

0 commit comments

Comments
 (0)