Cmake not setting RPATH when adding link_library with -L
问题 When setting link libraries in the following manner target_link_libraries (SOME_TARGET -L/somedir -lfoo) cmake doesn't handle RPATHs. Is using '-L' and '-l' not best practice, or actually plain wrong? When creating my own Find*.cmake I usually use find_library() but the find script I got doesn't do this and resorts to the above form using '-L' and '-l'. The documentation doesn't really explain how RPATHs are gathered, also the documentation isn't really clear how it handles "-l" and "-L" the