build2 set output directory

Viewed 19

I am new to build2 and following along thair toolchain introduction.

I currently have the following structure:

demo/
- build/
  - bootstrap.build
  - root.build
- demo/
  - main.cpp
  - buildfile
- buildfile
- ...

./build/bootstrap.build:

project = demo

using version
using config
using test
using install
using dist

./build/root.build:

cxx.std = 20

using cxx

hxx{*}: extension = hpp
cxx{*}: extension = cpp

./buildfile:

./: {*/ -build/}

./demo/buildfile:

exe{demo}: {hxx cxx}{*}

When I run b everything works but all the binry and metadata file get put into ./demo.

But when I run b demo/@demo-out/ I get the following error:

error: out_base suffix does not match src_root
  info: src_root: .\
  info: out_base: out\

As I am new to build2 I dont quite get what I am missing.

0 Answers
Related