I’m building a C++ project with CMakeLists.txt, that depends on some library, which is built in the build-process. I’ve used:
add_subdirectory(/path/to/some_lib)
that contains another CMakeLists.txt, that builds that library. In order to link I call:
target_link_libraries(${target} some_lib_name)
My question is:
how am I supposed to know what “some_lib_name” to use in target_link_libraries?
I’ve looked at the relevant pages in the cmake documentation and looked in the build directory, but there’s too much info. My question isn’t specific to some library, but general.