{"action":"created","issue":{"url":"https://api.github.com/repos/conan-io/conan/issues/850","repository_url":"https://api.github.com/repos/conan-io/conan","labels_url":"https://api.github.com/repos/conan-io/conan/issues/850/labels{/name}","comments_url":"https://api.github.com/repos/conan-io/conan/issues/850/comments","events_url":"https://api.github.com/repos/conan-io/conan/issues/850/events","html_url":"https://github.com/conan-io/conan/issues/850","id":199601657,"number":850,"title":"CMake bad generation when cpp_info.libs contains multiple entries","user":{"login":"packadal","id":245264,"avatar_url":"https://avatars.githubusercontent.com/u/245264?v=3","gravatar_id":"","url":"https://api.github.com/users/packadal","html_url":"https://github.com/packadal","followers_url":"https://api.github.com/users/packadal/followers","following_url":"https://api.github.com/users/packadal/following{/other_user}","gists_url":"https://api.github.com/users/packadal/gists{/gist_id}","starred_url":"https://api.github.com/users/packadal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/packadal/subscriptions","organizations_url":"https://api.github.com/users/packadal/orgs","repos_url":"https://api.github.com/users/packadal/repos","events_url":"https://api.github.com/users/packadal/events{/privacy}","received_events_url":"https://api.github.com/users/packadal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-09T16:46:03Z","updated_at":"2017-01-11T16:49:31Z","closed_at":"2017-01-10T08:05:50Z","body":"Hi,\r\n\r\nI am generating a package for openjpeg, which contains both openjp2 and openjp3d libs.\r\n\r\nWhen generating with `self.cpp_info.libs = [\"openjp2\", \"openjp3d\"]` the lib is not found by `conanbuildinfo.cmake`.\r\n\r\nThis is due to the following line in `conanbuildinfo.cmake` :\r\n```\r\n    conan_find_libraries_abs_path(${CONAN_LIBS_OPENJPEG} ${CONAN_LIB_DIRS_OPENJPEG}\r\n                                  CONAN_FULLPATH_LIBS_OPENJPEG)\r\n```\r\nWhen `${CONAN_LIBS_OPENJPEG}` contains multiple entries, the list is expanded, and the second element of the list is used for `${CONAN_LIB_DIRS_OPENJPEG}`, which screws up the `find_library` later.\r\n\r\nThis is easily fixed by changing the line to:\r\n\r\n```\r\n    conan_find_libraries_abs_path(\"${CONAN_LIBS_OPENJPEG}\" ${CONAN_LIB_DIRS_OPENJPEG}\r\n                                  CONAN_FULLPATH_LIBS_OPENJPEG)\r\n```"},"comment":{"url":"https://api.github.com/repos/conan-io/conan/issues/comments/271923091","html_url":"https://github.com/conan-io/conan/issues/850#issuecomment-271923091","issue_url":"https://api.github.com/repos/conan-io/conan/issues/850","id":271923091,"user":{"login":"memsharded","id":15367152,"avatar_url":"https://avatars.githubusercontent.com/u/15367152?v=3","gravatar_id":"","url":"https://api.github.com/users/memsharded","html_url":"https://github.com/memsharded","followers_url":"https://api.github.com/users/memsharded/followers","following_url":"https://api.github.com/users/memsharded/following{/other_user}","gists_url":"https://api.github.com/users/memsharded/gists{/gist_id}","starred_url":"https://api.github.com/users/memsharded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memsharded/subscriptions","organizations_url":"https://api.github.com/users/memsharded/orgs","repos_url":"https://api.github.com/users/memsharded/repos","events_url":"https://api.github.com/users/memsharded/events{/privacy}","received_events_url":"https://api.github.com/users/memsharded/received_events","type":"User","site_admin":false},"created_at":"2017-01-11T16:49:31Z","updated_at":"2017-01-11T16:49:31Z","body":"Thanks all for reporting!\r\nThis fix has been released in 0.18.1, please update and re-open and report if necessary."}}
{"actor":{"display_login":"memsharded"}}