Hi,<br>i have done it.. but still am getting the same errors.<br>i have also done in an alternative way<br>_______________________________________________________________<br># alternative way<br>set (BOOST_ROOT /usr/local)<br>
set (BOOST_LIBRARYDIR /usr/local/lib)<br>set (BOOST_INCLUDEDIR /usr/local/include)<br><br>find_package(Boost 1.35.0 COMPONENTS date_time filesystem graph regex serialization thread system signals)<br><br># with this im getting a different set of errors<br>
<br>________________________________________________________<br># initial version<br>find_package(Boost 1.35.0 REQUIRED)<br><br>&nbsp;INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})<br>#INCLUDE_DIRECTORIES(${Boost_LIBRARY_DIRS})<br>
<br># We need to include the hpx directory for includes<br>include_directories (${hpx_SOURCE_DIR})<br>include_directories (${hpx_SOURCE_DIR}/external/coroutine)<br>include_directories (${hpx_SOURCE_DIR}/external/exception)<br>
include_directories (${hpx_SOURCE_DIR}/external/endian)<br>include_directories (${hpx_SOURCE_DIR}/external/logging)<br>include_directories (${hpx_SOURCE_DIR}/external/singleton)<br><br>target_link_libraries( hpx ${Boost_system_LIBRARY})<br>
target_link_libraries( hpx ${Boost_signals_LIBRARY})<br>target_link_libraries( hpx ${Boost_thread_LIBRARY})<br>target_link_libraries( hpx ${Boost_serialization_LIBRARY})<br>target_link_libraries( hpx ${Boost_iostreams_LIBRARY})<br>
target_link_libraries( hpx ${Boost_date_time_LIBRARY})<br><br>if(WIN32)<br>&nbsp;&nbsp;&nbsp; add_definitions(-D_WIN32_WINNT=0x0501)<br>&nbsp;&nbsp;&nbsp; add_definitions(-D_SCL_SECURE_NO_WARNINGS)<br>&nbsp;&nbsp;&nbsp; add_definitions(-D_CRT_SECURE_NO_WARNINGS)<br>
&nbsp;&nbsp;&nbsp; add_definitions(-D_SCL_SECURE_NO_DEPRECATE)<br>&nbsp;&nbsp;&nbsp; add_definitions(-D_CRT_SECURE_NO_DEPRECATE)<br>endif(WIN32)<br><br># Recurse into the &quot;src&quot; and &quot;test&quot; subdirectories.&nbsp; This does not actually<br>
# cause another cmake executable to run.&nbsp; The same process will walk through<br># the project&#39;s entire directory structure.<br>add_subdirectory (src)<br>add_subdirectory (examples)<br>add_subdirectory (runtime)<br>________________________________________________________________<br>
<br><br><div class="gmail_quote">On Mon, Jun 23, 2008 at 12:33 PM, Andreas Pakulat &lt;<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On 23.06.08 12:25:38, Ravi Tej Kavalipati wrote:<br>
&gt; I am using the Cmake to link the boost libraries to my project HPX, But im<br>
&gt; getting various link errors in the process.<br>
&gt; can anyone please let me know if I am misrepresenting anything.<br>
&gt; ___________________________________________________________________________<br>
&gt; #CMakeLists.txt<br>
&gt; # Distributed under the Boost Software License, Version 1.0. (See<br>
&gt; accompanying<br>
&gt; # file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_blank">http://www.boost.org/LICENSE_1_0.txt</a>)<br>
&gt;<br>
&gt; # We require at least CMake V2.6<br>
&gt; cmake_minimum_required(VERSION 2.6)<br>
&gt;<br>
&gt; # The name of our project is &quot;hpx&quot;. &nbsp;CMakeLists files in this project can<br>
&gt; # refer to the root source directory of the project as ${hpx_SOURCE_DIR} and<br>
&gt; # to the root binary directory of the project as ${hpx_BINARY_DIR}.<br>
&gt; project (hpx)<br>
&gt;<br>
&gt; # We need to use Boost<br>
&gt; find_package(Boost 1.35.0 COMPONENTS system filesystem threads signals<br>
&gt; archive )<br>
<br>
</div>Are you using target_link_libraries with your target and the variables<br>
set by FindBoost.cmake? Just having<br>
<div class="Ih2E3d"><br>
&gt; LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})<br>
<br>
</div>This won&#39;t magically link yout executables against the needed boost<br>
libs.<br>
<br>
Andreas<br>
<font color="#888888"><br>
--<br>
You will be audited by the Internal Revenue Service.<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</font></blockquote></div><br>