增强构建-具有相同名称的源 [英] boost build - sources with the same name
问题描述
src
|--Manager.cpp
|--Specializations
| |--Manager.cpp
构建此Boost.Build尝试创建
Building this Boost.Build tries to create
/bin/...
|--Manager.o
|--Manager.o
但是失败.如何自动解决此问题?我阅读了常见问题解答,但我不喜欢该解决方案,因为当我具有相同的类名但名称空间不同时,我必须手动解决问题.可以使Boost.Build自动在目录中为目标文件名加上前缀吗?
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
还是复制源目录树?
/bin/...
|--Manager.o
|--Specializations
| |--Manager.o
推荐答案
此行为已在很久以前更改过,应该可以使用.现在,Boost.Build模仿了源代码结构,即您应该同时获得bin/Manager.o
和bin/Specializations/Manager.o
.
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
.
这篇关于增强构建-具有相同名称的源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!