[CMake] Boost Link errors in CMAKE
Andreas Pakulat
apaku at gmx.de
Tue Jun 24 02:52:26 EDT 2008
On 23.06.08 15:34:05, Ravi Tej Kavalipati wrote:
> Hi,
> i have done it.. but still am getting the same errors.
> i have also done in an alternative way
> _______________________________________________________________
> # alternative way
> set (BOOST_ROOT /usr/local)
> set (BOOST_LIBRARYDIR /usr/local/lib)
> set (BOOST_INCLUDEDIR /usr/local/include)
>
> find_package(Boost 1.35.0 COMPONENTS date_time filesystem graph regex
> serialization thread system signals)
>
> # with this im getting a different set of errors
And what are they?
> target_link_libraries( hpx ${Boost_system_LIBRARY})
> target_link_libraries( hpx ${Boost_signals_LIBRARY})
> target_link_libraries( hpx ${Boost_thread_LIBRARY})
> target_link_libraries( hpx ${Boost_serialization_LIBRARY})
> target_link_libraries( hpx ${Boost_iostreams_LIBRARY})
> target_link_libraries( hpx ${Boost_date_time_LIBRARY})
I suggest to take another look at the CMake documentation, you can't use
that before defining the target, you should get cmake errors with this.
Andreas
--
Your best consolation is the hope that the things you failed to get weren't
really worth having.
More information about the CMake
mailing list