How to fetchcontent_declare() properly and also target link these libraries?
I am trying to get some libraries with FetchContent_Declare()
, however I dont know if my library names in the target_link_libraries()
method are right (How can I know it) and also why I am getting this error below:
How to fetchcontent_declare() properly and also target link these libraries?
I am trying to get some libraries with FetchContent_Declare()
, however I dont know if my library names in the target_link_libraries()
method are right (How can I know it) and also why I am getting this error below:
CMake – Set compile flag for singular file in project
I have a C++ file in a project that uses multithreading and I can’t compile it without adding the compiler flag “-pthread”. I am compiling using CMake and want to add the flag for only this one file.