[英]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.