I use a cmake generated makefile to compile a c++ file that depends on the boost filesystem library.
During the linking process I get the following error:
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} )