cannot find -lboost_filesystem
I found a code from GitHub whose CMakeLists .txt file looks like this:
cmake_minimum_required(VERSION 3.7)
project(obj_loader)
execute_process(COMMAND python -c "import tensorflow; print(tensorflow.sysconfig.get_include())" OUTPUT_VARIABLE Tensorflow_default_INCLUDE_DIRS)
set(Tensorflow_INCLUDE_DIRS "${Tensorflow_default_INCLUDE_DIRS}" CACHE PATH "Tensorflow include path")
include_directories(${Tensorflow_INCLUDE_DIRS})
set(CMAKE_CXX_STANDARD 11)
set(SOURCE_FILES obj_loader.cpp)
add_library(obj_loader SHARED ${SOURCE_FILES})
target_link_libraries(obj_loader boost_filesystem)
I get the following error when I run the mingw32-make command
[ 50%] Building CXX object CMakeFiles/obj_loader.dir/obj_loader.cpp.obj
[100%] Linking CXX shared library libobj_loader.dll
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lboost_filesystem
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [CMakeFiles\obj_loader.dir\build.make:99: libobj_loader.dll] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:82: CMakeFiles/obj_loader.dir/all] Error 2
mingw32-make: *** [Makefile:90: all] Error 2
What is the -lboost_filesystem
error related to?
Thank you in advance