[CMake] Can't find boost libs on VS2017 CMake 3.12

Søren sd at syntonetic.com
Wed Aug 8 06:29:04 EDT 2018


Update: I put this before find packages boost and now it WORKS:

if (WIN32)
   set (Boost_USE_STATIC_LIBS ON)
endif (WIN32)

Think I tried this earlier with no luck but it may have been obscured by 
cache or some other attempts.

On 03-08-2018 13:24, Søren wrote:
> Thanks
>
> Debug output shows
> * that it already searchs in the right folders.
> * It appears to search for the right patterns e.g. 
> "boost_chrono-vc141-mt-x64-1_67" (file is there 
> "libboost_chrono-vc141-mt-x64-1_67.lib")
> * It also states  "Boost_FOUND = 1"
>
> But still that error. So far I can't see from the debug output why it 
> fails.

-- 

Best regards,

Søren Dyrsting

Senior Software Engineer

cid:image001.png at 01D38889.00F59D30

T: +45 36 16 36 00

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180808/a8c620a0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: adfhcmicfbldodni.png
Type: image/png
Size: 5848 bytes
Desc: not available
URL: <https://cmake.org/pipermail/cmake/attachments/20180808/a8c620a0/attachment-0001.png>


More information about the CMake mailing list