简体   繁体   English

除默认值外,无法设置Boost_LIBRARIES的路径

[英]unable to set path of Boost_LIBRARIES other than default

I have compiled boost library in stage/Win32/ folder. 我已经在stage / Win32 /文件夹中编译了boost库。 When I do 当我做

target_link_libraries(${TARGET} ${Boost_LIBRARIES}

I get path to stage/lib/ libname locations which won't work in visual studio. 我获得了指向stage / lib / libname位置的路径,这些位置在Visual Studio中不起作用。

how do I get path of library as stage/win32/ libname 我如何获取库的路径作为stage / win32 / libname

There is a hint variable Boost_LIBRARY_DIR that you can set that will tell the find module where to look for the libraries. 您可以设置提示变量Boost_LIBRARY_DIR ,该变量将告诉find模块在哪里查找库。

cmake -DBoost_LIBRARY_DIR:PATH=D:/boost/stage/win32/ ..

You'll probably have to clear the cmake cache before re-running cmake. 在重新运行cmake之前,您可能必须清除cmake缓存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在用户范围设置中设置默认的应用程序路径值 - How to set default application path value in user scoped settings 将Bullet物理和Boost一起编译为静态库 - Compiling Bullet physics and Boost together as static libraries 无法设置msbuild.exe Visual Studio 2010的路径 - Unable to set path of msbuild.exe Visual Studio 2010 如何在 Visual Studio 2010 中添加除默认值之外的其他监视窗口? - How to add other watch windows than the default first to Visual Studio 2010? 有没有办法为Visual Studio设置默认浏览器用于调试,这与我的系统默认浏览器不同? - is there a way to set a default browser for visual studio to use for debugging that is different than my systems default browser? 无法在Visial Studio 2010中链接boost库。 - Trouble linking boost libraries in Visial Studio 2010. 如何将自定义库添加到默认解决方案模板? - How to add Custom Libraries to Default Solution Template? 无法从VS2010创建虚拟名称为localhost的虚拟目录 - Unable to create a Virtual Directory from VS2010 with a name other than localhost Qt和OpenCV静态库相互冲突 - Qt and OpenCV static libraries conflict with each other 如何不调试xstring和其他标准库? - How to not debug xstring and other standard libraries?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM