Re: [CMake] Linking with boost

2014-03-17 Thread Lloyd
Thanks David, now it works, seems to be cache issue On Fri, Mar 14, 2014 at 4:46 PM, David Cole wrote: > If you start with a clean directory in each case, do you get the same > results? > > (i.e. -- is the result of the first run cached, and re-used despite your > change of variable value...?)

Re: [CMake] Linking with boost

2014-03-14 Thread David Cole
If you start with a clean directory in each case, do you get the same results? (i.e. -- is the result of the first run cached, and re-used despite your change of variable value...?) HTH, David C. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http

[CMake] Linking with boost

2014-03-13 Thread Lloyd
Hi, Our project uses boost on Windows. Except thread library, all other library need to be linked statically. To achieve this, what I did is this ADD_DEFINITIONS(-D BOOST_THREAD_DYN_DLL) set(Boost_USE_STATIC_LIBSON) set(Boost_USE_MULTITHREADED ON) find_package( Boost COMPONENTS threa