Why this code does not produce anything?
link_directories(${CMAKE_SOURCE_DIR}/libs/mylib1)
message("DIR: ${LINK_DIRECTORIES}")
I have problem on Windows that though I do `link_directories()` there is NO `-L...` flag when linking. I do create target after `link_directories` command as documentation suggests. Please give the full CMakeLists.txt and describe your folder structure - it's really not clear what is your problem.
以上就是CMAKE library not linking的详细内容,更多请关注web前端其它相关文章!