trying to compile and use 3rd party libraries in my code. It actually worked before, then I tried to move a directory and it stopped working even after reverting to . I found some related answers, but It already worked for me, so I think it shouldn't be something big. I am compiling with Visual Studio 2019. The relevant CMakeList.txt code:
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan")
file(DOWNLOAD "https://raw.githubusercontent.com/conan-io/cmake-conan/master/conan.cmake"
"${CMAKE_BINARY_DIR}/conan.cmake")
endif()
include(${CMAKE_BINARY_DIR}/conan.cmake)
conan_cmake_run(REQUIRES boost/1.70.0-7
protobuf/3.11.2-1
BASIC_SETUP)
target_link_libraries(main ${CONAN_LIBS})
The error is:
fatal error LNK1104: cannot open file 'libboost_atomic-vc141-mt-sgd-x64-1_70.lib'