增强构建-具有相同名称的源 [英] boost build - sources with the same name

查看:101
本文介绍了增强构建-具有相同名称的源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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.obin/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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆