{"action":"created","issue":{"url":"https://api.github.com/repos/boost-cmake/boost/issues/6","repository_url":"https://api.github.com/repos/boost-cmake/boost","labels_url":"https://api.github.com/repos/boost-cmake/boost/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/boost-cmake/boost/issues/6/comments","events_url":"https://api.github.com/repos/boost-cmake/boost/issues/6/events","html_url":"https://github.com/boost-cmake/boost/issues/6","id":262224232,"number":6,"title":"Compilation fails without python","user":{"login":"dutow","id":489009,"avatar_url":"https://avatars3.githubusercontent.com/u/489009?v=4","gravatar_id":"","url":"https://api.github.com/users/dutow","html_url":"https://github.com/dutow","followers_url":"https://api.github.com/users/dutow/followers","following_url":"https://api.github.com/users/dutow/following{/other_user}","gists_url":"https://api.github.com/users/dutow/gists{/gist_id}","starred_url":"https://api.github.com/users/dutow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dutow/subscriptions","organizations_url":"https://api.github.com/users/dutow/orgs","repos_url":"https://api.github.com/users/dutow/repos","events_url":"https://api.github.com/users/dutow/events{/privacy}","received_events_url":"https://api.github.com/users/dutow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-10-02T20:50:43Z","updated_at":"2018-04-27T01:07:57Z","closed_at":null,"author_association":"NONE","body":"When CMake can't find python, the boost::python package is correctly skipped.\r\n\r\nHowever, the parameter library still tries [to link with it](https://github.com/boost-cmake/boost/blob/6d01c81a745c3fcee8703133c204fccaf86315ae/libs/parameter/CMakeLists.txt#L25).\r\n\r\nThis causes several errors after the configuration phase such as:\r\n\r\n```\r\nCMake Error at bcm/share/bcm/cmake/BCMFuture.cmake:68 (_add_library):\r\n  Target \"log-compile-current_function_support\" links to target\r\n  \"boost::python\" but the target was not found.  Perhaps a find_package()\r\n  call is missing for an IMPORTED target, or an ALIAS target is missing?\r\nCall Stack (most recent call first):\r\n  bcm/share/bcm/cmake/BCMTest.cmake:104 (add_library)\r\n  libs/log/test/CMakeLists.txt:62 (bcm_test)\r\n```\r\n\r\nAn easy way to reproduce this is, for example, to do a 64 build on a machine with only the 32-bit python libraries present.\r\n\r\nCommenting out the line I referenced solved the problem in this case, and I was able to build the project - so I think it should be conditional.\r\n\r\nAnd also, other, optionally built libraries referenced in this way could cause similar issues."},"comment":{"url":"https://api.github.com/repos/boost-cmake/boost/issues/comments/384833340","html_url":"https://github.com/boost-cmake/boost/issues/6#issuecomment-384833340","issue_url":"https://api.github.com/repos/boost-cmake/boost/issues/6","id":384833340,"user":{"login":"pfultz2","id":1306044,"avatar_url":"https://avatars1.githubusercontent.com/u/1306044?v=4","gravatar_id":"","url":"https://api.github.com/users/pfultz2","html_url":"https://github.com/pfultz2","followers_url":"https://api.github.com/users/pfultz2/followers","following_url":"https://api.github.com/users/pfultz2/following{/other_user}","gists_url":"https://api.github.com/users/pfultz2/gists{/gist_id}","starred_url":"https://api.github.com/users/pfultz2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfultz2/subscriptions","organizations_url":"https://api.github.com/users/pfultz2/orgs","repos_url":"https://api.github.com/users/pfultz2/repos","events_url":"https://api.github.com/users/pfultz2/events{/privacy}","received_events_url":"https://api.github.com/users/pfultz2/received_events","type":"User","site_admin":false},"created_at":"2018-04-27T01:07:57Z","updated_at":"2018-04-27T01:07:57Z","author_association":"OWNER","body":"> Perhaps that is a rabbit hole. It appears that EXCLUDE_LIBS isn't used outside of the root CMakeLists.txt.\r\n\r\nYes of course, because each project can be built independently without the superproject. So for now, if you exclude a library you need to manually exclude its dependencies. I don't know of an easy way to exclude the dependencies automatically.\r\n\r\n> I tried excluding several libraries and it created more explosions like this one\r\n\r\nYea that's definitely a bug. The missing dependencies for a test shouldn't cause it to break like that unless `BUILD_TESTING` is true. I need to add more tests for this in BCM."}}
{"actor":{"display_login":"pfultz2"}}