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> 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> add_definitions(-D_WIN32_WINNT=0x0501)<br> add_definitions(-D_SCL_SECURE_NO_WARNINGS)<br> add_definitions(-D_CRT_SECURE_NO_WARNINGS)<br>
add_definitions(-D_SCL_SECURE_NO_DEPRECATE)<br> add_definitions(-D_CRT_SECURE_NO_DEPRECATE)<br>endif(WIN32)<br><br># Recurse into the "src" and "test" subdirectories. This does not actually<br>
# cause another cmake executable to run. The same process will walk through<br># the project'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 <<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>> 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>
> I am using the Cmake to link the boost libraries to my project HPX, But im<br>
> getting various link errors in the process.<br>
> can anyone please let me know if I am misrepresenting anything.<br>
> ___________________________________________________________________________<br>
> #CMakeLists.txt<br>
> # Distributed under the Boost Software License, Version 1.0. (See<br>
> accompanying<br>
> # 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>
><br>
> # We require at least CMake V2.6<br>
> cmake_minimum_required(VERSION 2.6)<br>
><br>
> # The name of our project is "hpx". CMakeLists files in this project can<br>
> # refer to the root source directory of the project as ${hpx_SOURCE_DIR} and<br>
> # to the root binary directory of the project as ${hpx_BINARY_DIR}.<br>
> project (hpx)<br>
><br>
> # We need to use Boost<br>
> find_package(Boost 1.35.0 COMPONENTS system filesystem threads signals<br>
> 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>
> LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})<br>
<br>
</div>This won'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>