简体   繁体   中英

unable to set path of Boost_LIBRARIES other than default

I have compiled boost library in stage/Win32/ folder. When I do

target_link_libraries(${TARGET} ${Boost_LIBRARIES}

I get path to stage/lib/ libname locations which won't work in visual studio.

how do I get path of library as 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.

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

You'll probably have to clear the cmake cache before re-running cmake.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM