boost build - sources with the same name

2019-07-13 12:09发布

src
  |--Manager.cpp
  |--Specializations
  |    |--Manager.cpp

Building this Boost.Build tries to create

/bin/...
  |--Manager.o
  |--Manager.o

but fails. How to resolve this automatically? I read FAQ item, but I don't like the solution, as I have to fix things manually when I have a same class name, but different namespace. Would it be possible to make Boost.Build automatically prefix object file names with directory?

/bin/...
  |--Manager.o
  |--Specializations.Manager.o

Or duplicate the source directory tree?

/bin/...
  |--Manager.o
  |--Specializations
  |    |--Manager.o

1条回答
smile是对你的礼貌
2楼-- · 2019-07-13 12:33

This behavior has been changed a long time ago and should just work. Boost.Build now mimics the source structure, i.e. you should get both bin/Manager.o and bin/Specializations/Manager.o.

查看更多
登录 后发表回答