Hi,

Thanks for the suggestions and apologies for my tardiness in getting back on 
this issue. I'm replying with my experiences for other to use as a future 
reference, hopefully they can avoid some of the frustration I've encountered.

I spent half a day on this with two colleagues who are well versed in using 
CMake, and we found a simple solution.

DON'T BOTHER!

"Windows + CMake + source boost "build seems intractable, or at the very least 
intractable enough to basically be impossible, or at any rate just not worth 
bothering with.

If are using Windows and you rate your sanity and time higher than you rate the 
ability to use CMake and a source build of boost together I suggest you do the 
following...


1.       Look in C:\Program Files\CMake\share\cmake-3.9\Modules\FindBoost.cmake

2.       Search for _Boost_KNOWN_VERSIONS

3.       Download the binary build of the newest version listed from 
https://sourceforge.net/projects/boost/files/boost-binaries/

4.       If Windows Defender has a wobbly and your IT policy won't allow you to 
ignore the wobble then move back thorugh older versions until one works

5.       Install the boost to the default location and default settings

6.       Run CMake with the following sort of thing...

    find_package(Boost REQUIRED COMPONENTS system filesystem thread date_time 
iostreams)
    include_directories(${Boost_INCLUDE_DIRS})
    link_directories(${Boost_LIBRARY_DIRS})


7.       ...relax and make a nice cup of tea

Best Regards,

Gavin


From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Dvir Yitzchaki
Sent: 15 July 2018 08:27
To: Innokentiy Alaytsev <alait...@gmail.com>; cmake@cmake.org
Subject: Re: [CMake] Boost + CMake + Windows + Sanity -> Possible?


I recommend using Hunter package manager:

https://docs.hunter.sh/en/latest/quick-start/boost-components.html<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.hunter.sh%2Fen%2Flatest%2Fquick-start%2Fboost-components.html&data=01%7C01%7Cgavin.wheeler%40kcl.ac.uk%7Ce36bc216c96b4234004408d5ea267d17%7C8370cf1416f34c16b83c724071654356%7C0&sdata=iwvlHuibo8%2Fu3bGB1woxV5fcI7T6daJRHII5l37dzGc%3D&reserved=0>



Regards,

Dvir



-----Original Message-----
From: CMake <cmake-boun...@cmake.org<mailto:cmake-boun...@cmake.org>> On Behalf 
Of Innokentiy Alaytsev
Sent: Thursday, July 12, 2018 13:29
To: cmake@cmake.org<mailto:cmake@cmake.org>
Subject: Re: [CMake] Boost + CMake + Windows + Sanity -> Possible?



Hello!



First of all, I suggest you use Boost imported targets instead of 
Boost_INCLUDE_DIRS and Boost_LIBRARY_DIRS and the

target_include_directories() and target_link_libraries() functions. Al this is 
to better support exporting CMake package if you need it. If you do not produce 
CMake package for use in some other projects, then just ignore this advice.



Second, just use  pre-built Boost binaries 
<https://dl.bintray.com/boostorg/release/1.67.0/binaries/<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdl.bintray.com%2Fboostorg%2Frelease%2F1.67.0%2Fbinaries%2F&data=01%7C01%7Cgavin.wheeler%40kcl.ac.uk%7Ce36bc216c96b4234004408d5ea267d17%7C8370cf1416f34c16b83c724071654356%7C0&sdata=p7Gr9TztBZhINb3iTb9PZJs0oOSp3fu%2FkR5HtZs624M%3D&reserved=0>>
  . They are just fine. If your Windows Defender finds something in them then 
it's the problem in Windows Defender.



Best regards,

Innokentiy Alaytsev







--

Sent from: 
http://cmake.3232098.n2.nabble.com/<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcmake.3232098.n2.nabble.com%2F&data=01%7C01%7Cgavin.wheeler%40kcl.ac.uk%7Ce36bc216c96b4234004408d5ea267d17%7C8370cf1416f34c16b83c724071654356%7C0&sdata=Bn6BpFHeaEY%2FPICsFuyxhedwJz74DnCqPj6JwX1OCWU%3D&reserved=0>

--



Powered by 
www.kitware.com<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com&data=01%7C01%7Cgavin.wheeler%40kcl.ac.uk%7Ce36bc216c96b4234004408d5ea267d17%7C8370cf1416f34c16b83c724071654356%7C0&sdata=h%2B9%2FVFYma%2BR7EpgKMbW2SK0y8nmoVzSnUgUSauMofWI%3D&reserved=0>



Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.cmake.org%2FWiki%2FCMake_FAQ&data=01%7C01%7Cgavin.wheeler%40kcl.ac.uk%7Ce36bc216c96b4234004408d5ea267d17%7C8370cf1416f34c16b83c724071654356%7C0&sdata=8qV0sbl6p82iFJjdrr5BpcU1Gl6fmgB%2Ba%2Bl5TW3xMVU%3D&reserved=0>



Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:



CMake Support: 
http://cmake.org/cmake/help/support.html<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcmake.org%2Fcmake%2Fhelp%2Fsupport.html&data=01%7C01%7Cgavin.wheeler%40kcl.ac.uk%7Ce36bc216c96b4234004408d5ea267d17%7C8370cf1416f34c16b83c724071654356%7C0&sdata=TnN9QdIdT1U%2Ffpb%2Fco%2BTeQ7FjVnHmT%2BAi61qKomtbx8%3D&reserved=0>

CMake Consulting: 
http://cmake.org/cmake/help/consulting.html<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcmake.org%2Fcmake%2Fhelp%2Fconsulting.html&data=01%7C01%7Cgavin.wheeler%40kcl.ac.uk%7Ce36bc216c96b4234004408d5ea267d17%7C8370cf1416f34c16b83c724071654356%7C0&sdata=QSq%2FThpzrrKQxGKslOFRJeAfdjApu%2FQG8v4nGb6IC74%3D&reserved=0>

CMake Training Courses: 
http://cmake.org/cmake/help/training.html<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcmake.org%2Fcmake%2Fhelp%2Ftraining.html&data=01%7C01%7Cgavin.wheeler%40kcl.ac.uk%7Ce36bc216c96b4234004408d5ea267d17%7C8370cf1416f34c16b83c724071654356%7C0&sdata=c72JN2QChO0q6k6OMmT3Z%2B%2BTM5lEiQ4DG%2BtoMud5kNY%3D&reserved=0>



Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=01%7C01%7Cgavin.wheeler%40kcl.ac.uk%7Ce36bc216c96b4234004408d5ea267d17%7C8370cf1416f34c16b83c724071654356%7C0&sdata=JRGE6gVyK3u%2FOVq5r1E9fSkWl9cU8EHzDE%2F8ujZCi8s%3D&reserved=0>



Follow this link to subscribe/unsubscribe:

https://cmake.org/mailman/listinfo/cmake<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcmake.org%2Fmailman%2Flistinfo%2Fcmake&data=01%7C01%7Cgavin.wheeler%40kcl.ac.uk%7Ce36bc216c96b4234004408d5ea267d17%7C8370cf1416f34c16b83c724071654356%7C0&sdata=6O6VKBtD6BlbqMIMvU5HGUy723y%2BW%2BLiRofNuPDi8Jw%3D&reserved=0>
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

Reply via email to