<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Since you are not telling us your CMake version I can't say for sure,<br>
but it may just be that the FindBoost module does not know about the<br>
newer Boost version.<br>
<br>
> how can i update the FindBoost.cmake file so that I get new version ?<br>
<br>
set(Boost_ADDITIONAL_VERSIONS 1.55 1.55.0)<br>
find_package(Boost)<br>
<br>
Make sure to do that with a clean cache (e.g. new build dir), otherwise<br>
the result of the previous run will be reused.<br>
<br>
Eike<br>
<br>
Here is my CMakeList file</blockquote><div>project (sample_project1)</div><div>cmake_policy(SET CMP0015 NEW)</div><div>set(Boost_USE_STATIC_LIBS ON)</div><div>set(Boost_USE_MULTITHREADED ON)</div><div>set(Boost_USE_STATIC_RUNTIME OFF)</div>
<div>if (UNIX)</div><div><span class="" style="white-space:pre"> </span>find_package(Boost 1.36.0 COMPONENTS thread log filesystem)</div><div>else()</div><div><span class="" style="white-space:pre"> </span>set(BOOST_ROOT C:/boost_1_55_0)</div>
<div><span class="" style="white-space:pre"> </span>find_package(Boost 1.55.0 COMPONENTS thread log filesystem)</div><div>endif()</div><div><br></div><div><br></div><div>SET(SOURCE</div><div> main.cc sqr.cc</div><div>)</div>
<div><br></div><div>SET(HEADERS</div><div> sqr.h zhelpers.h</div><div>)</div><div>if(Boost_FOUND)</div><div><span class="" style="white-space:pre"> </span>include_directories(${Boost_INCLUDE_DIRS}) </div><div> LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})</div>
<div><span class="" style="white-space:pre"> </span>if (UNIX)</div><div><span class="" style="white-space:pre"> </span>message(status "GCC")</div><div><span class="" style="white-space:pre"> </span> add_executable (sample_project1 ${SOURCE} ${HEADERS})</div>
<div><span class="" style="white-space:pre"> </span> target_link_libraries(sample_project1 ${Boost_LIBRARIES} czmq zmq)</div><div><span class="" style="white-space:pre"> </span>else()</div><div><span class="" style="white-space:pre"> </span>message(status "MSVC")</div>
<div><span class="" style="white-space:pre"> </span>include_directories("D:\\projects\\lpa\\lpa_c\\ext_library\\zmq\\czmq\\czmq-2.0.3\\include")</div><div><span class="" style="white-space:pre"> </span>include_directories("D:\\projects\\lpa\\lpa_c\\ext_library\\zmq\\zeromq-4.0.3\\include")</div>
<div><br></div><div><span class="" style="white-space:pre"> </span>link_directories("D:\\projects\\lpa\\lpa_c\\ext_library\\zmq\\czmq\\czmq-2.0.3\\lib\\Release")</div><div><span class="" style="white-space:pre"> </span>link_directories("D:\\projects\\lpa\\lpa_c\\ext_library\\zmq\\zeromq-4.0.3\\lib\\Release")</div>
<div><span class="" style="white-space:pre"> </span></div><div><span class="" style="white-space:pre"> </span>#PATH=D:\projects\lpa\lpa_c\ext_library\zmq\zeromq-4.0.3\lib\Release;%PATH%</div><div><span class="" style="white-space:pre"> </span> add_executable (sample_project1 ${SOURCE} ${HEADERS})</div>
<div><span class="" style="white-space:pre"> </span> target_link_libraries(sample_project1 ${Boost_LIBRARIES} czmq libzmq)</div><div><span class="" style="white-space:pre"> </span>endif ()</div><div><br></div><div><br>
</div><div>else()</div><div><span class="" style="white-space:pre"> </span>message(STATUS "Fail asdasd!")</div><div>endif() </div></div></div></div>