I'm following the instructions on BUILDING.md on how to build the tests but at the step cmake --build . --config Release I'm getting the following error:
[ 53%] Linking CXX executable ../bin/test_toolkit
/usr/bin/ld: CMakeFiles/test_toolkit.dir/test_project.cpp.o: in function `boost::filesystem::exists(boost::filesystem::path const&)':
/usr/include/boost/filesystem/operations.hpp:463: undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'
collect2: error: ld returned 1 exit status
make[2]: *** [tests/CMakeFiles/test_toolkit.dir/build.make:339: bin/test_toolkit] Error 1
make[1]: *** [CMakeFiles/Makefile2:284: tests/CMakeFiles/test_toolkit.dir/all] Error 2
make: *** [Makefile:101: all] Error 2
(base)
I'm read on stackoverflow that adding -lboost_system and -lboost_filesystem in the gcc call may fix the problem, but I can't figure out where in the cmake files to add that. What should I do?
I'm following the instructions on BUILDING.md on how to build the tests but at the step
cmake --build . --config Release
I'm getting the following error:I'm read on stackoverflow that adding
-lboost_system
and-lboost_filesystem
in the gcc call may fix the problem, but I can't figure out where in the cmake files to add that. What should I do?