开发者

Weird cmake target_link_libraries behaviour

开发者 https://www.devze.com 2023-02-03 22:02 出处:网络
I use target_link_librari开发者_如何学Goes to link to some external libs like this: target_link_libraries( MyApp ${OTHERLIB_LIBRARIES} )

I use target_link_librari开发者_如何学Goes to link to some external libs like this:

target_link_libraries( MyApp ${OTHERLIB_LIBRARIES} )

where the OTHERLIB_LIBRARIES is set as

set( OTHERLIB_LIBRARIES debug mathd networkd optimized math network )

Now interestingly Visual Studio linker line includes both debug and optimized libs: mathd networkd math network.

I know that this sort of usage works, but I can not find what could cause this to break.

Cmake 2.8.3 and Visual Studio 2005

Any ideas?


Could you try:

set( OTHERLIB_LIBRARIES debug mathd debug networkd optimized math optimized network )
0

精彩评论

暂无评论...
验证码 换一张
取 消