How to link against boost.system with cmake?

On linux CMake figures itself that boost_filesystem is linked against boost_system. Obviously you have to tell it explicitly on Mac.

On linux CMake figures itself that boost_filesystem is linked against boost_system. Obviously you have to tell it explicitly on Mac: find_package(Boost COMPONENTS system filesystem REQUIRED) #... target_link_libraries(mytarget ${Boost_FILESYSTEM_LIBRARY} ${Boost_SYSTEM_LIBRARY} ).

This is bizarre. On Linux, boost. Filesystem dynamic library refers to boost.

System library, so no explicit linking to boost. System is necessary. Any idea why this is not happening here?

– Vladimir Prus Jul 1 '09 at 6:42 You are rigth, ldd libboost_filesystem. So lists libboost_system. So (0x00007fcd31e67000).

AFAIK on Mac "otool -L" is the equivalent to ldd, but I have no Mac around. Should we bring up this at the boost ML? – Maik Beckmann Jul 1 '09 at 7:15 What about using ${Boost_LIBRARIES} instead?

Should always include everything specified by COMPONENTS, no? – LiMuBei Oct 13 at 10:20 Good answer... I personally found this answer more helpful though... stackoverflow. Com/questions/3897839/… – Homer6 Oct 28 at 1:15.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions