【问题标题】:Weird cmake target_link_libraries behaviour奇怪的 cmake target_link_libraries 行为
【发布时间】:2011-01-13 18:41:06
【问题描述】:

我使用 target_link_libraries 链接到一些外部库,如下所示:

target_link_libraries( MyApp ${OTHERLIB_LIBRARIES} )

OTHERLIB_LIBRARIES 设置为

set( OTHERLIB_LIBRARIES debug mathd networkd optimized math network )

有趣的是,Visual Studio 链接器行包括调试库和优化库:mathd networkd 数学网络。

我知道这种用法是可行的,但我找不到可能导致它崩溃的原因。

Cmake 2.8.3 和 Visual Studio 2005

有什么想法吗?

【问题讨论】:

    标签: visual-studio cmake


    【解决方案1】:

    你可以试试:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-19
      • 2012-01-26
      • 1970-01-01
      • 1970-01-01
      • 2020-12-09
      • 2013-09-10
      • 1970-01-01
      • 2019-12-08
      相关资源
      最近更新 更多