使用set_prefixname更改输出动态库文件名后,怎么在其他引用库里使用add_deps? #4498
jiezenghuang
started this conversation in
General
Replies: 2 comments 2 replies
-
你应该改 basename 而不是 prefixname , prefixname 改的是 libxxx.a 前面的 |
Beta Was this translation helpful? Give feedback.
0 replies
-
set_basename是直接把target名称改了吧。不能统一加一个项目的前缀吗?类似boost,每个模块的dll文件名生成为:[package][component][mt]_[d].dll 用户在使用的时候还是可以用component名称去链接特定的库。 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
项目添加了nlk_前缀,io模块依赖common
target("io")
add_headerfiles(".h")
add_files(".cpp")
add_deps("common")
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.38.33133
[ 100%]: linking.release nlk_common.dll
[ 90%]: linking.release nlk_io.dll
error: LINK : fatal error LNK1181: cannot open input file 'common.lib'
如果使用add_deps("nlk_common"),则提示找不到nlk_common模块
Beta Was this translation helpful? Give feedback.
All reactions