title: Whats the proper way to link Boost with CMake and Visual Studio in Windows?
body: <p>I am trying to generate some Boost 1.58 libraries that I need (chrono, regex and thread) for Visual Studio 2012 and link the libraries with CMake. I have real problems for CMake and Visual Studio to find or link the libs, depending on the configuration I set.</p>
  
  <p>I am finally using the following configuration:</p>
  
  <p>bjam.exe --link=static --threading multi --variant=debug stage</p>
  
  <p>But this doesn't seem to generate static libs.</p>
  
  <p>How should I generate the libs and search them with CMake in order for Visual Studio to link them properly?</p>