I am trying to add boost::thread to my application, but I get this link error. I have the proper include path in the compiler, and I have -pthread specified in the linker. I am not sure what I am doing wrong.
CMake Error at CMakeLists.txt:52 (target_link_libraries):
Target "boost_thread" links to:
Boost::assert
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
CMake Generate step failed. Build files cannot be regenerated correctly. CMakeLists.txt /thread MhError CMake Problem
I am already including boost::assert's includes into my project and have them specified in the project's include path.