对于 poco 库来说,Boost_USE_STATIC_LIBS相当于什么?
What is the equivalent of Boost_USE_STATIC_LIBS for poco libraries?
为了使用Boost
静态构建我的 C++ 项目,我可以使用以下cmake
命令:
set(Boost_USE_STATIC_LIBS ON)
POCO 库有相同的功能吗?
Boost_USE_STATIC_LIBS
是提升查找模块的一个选项。这是一个文件,其中包含有关在哪里可以找到所有提升组件(标头和库,但不仅如此(的cmake信息。当您调用 cmake 搜索此文件find_package
并根据您设置的选项执行更多操作时,例如存储动态库的名称或用于链接的静态库的名称。
我想您正在以与搜索boost相同的方式搜索POCO组件,因此POCO可能具有相同的信息。在这种情况下,我建议您检查<somenamerelatedtoPOCO>.cmake
文件。
相关文章:
- 为什么即使使用-cudart-static进行编译,库用户仍然需要链接到cuda运行时
- 如何处理 c++ 中类实现中的"invalid use of non-static data member"?
- C++ "error: invalid use of void expression"
- 我看到"use of undeclared identifier"错误,有人可以告诉我如何解决它吗?
- 收到错误"invalid use of non-static data member 'stu::n' "
- 模式"allocate memory or use existing data"
- LNK1104:无法打开libpjproject-i386-Win32-vc14-Debug-Static.lib
- 我应该在 C++ 中何时/为什么使用 STATIC?
- 在VS2019项目中集成ImageMagick:x64-windows-static library
- 如何处理Boost Spirit X3导致Visual Studio 2019 "static initialization order fiasco"?
- C++ "error: use of overloaded operator '*' is ambiguous"似乎只有一场比赛
- 出现这种错误的原因是什么"invalid use of non-static data member "
- 如何修复库中的"invalid use of non-static member function" 导入另一个库
- 在C++中传递对象会产生'invalid use of non-static member'错误
- 为什么当我尝试在类中创建数组时"invalid use of non-static data member"我会收到错误?
- 访问父类的成员"Invalid use of non-static data member" C++
- "invalid use of non static member function" 这是什么?
- C++类模板和嵌套结构。 "Invalid use of non-static data member..."
- 函数指针生成'invalid use of non-static member function'错误
- 引用 MFC 的多个项目:"use mfc in a static library" vs "use mfc in a shared dll" ?