{"action":"created","issue":{"url":"https://api.github.com/repos/conan-io/conan/issues/2543","repository_url":"https://api.github.com/repos/conan-io/conan","labels_url":"https://api.github.com/repos/conan-io/conan/issues/2543/labels{/name}","comments_url":"https://api.github.com/repos/conan-io/conan/issues/2543/comments","events_url":"https://api.github.com/repos/conan-io/conan/issues/2543/events","html_url":"https://github.com/conan-io/conan/issues/2543","id":301130189,"number":2543,"title":"Same build_requirement on multiple architectures.","user":{"login":"gustavokretzer88","id":25981233,"avatar_url":"https://avatars2.githubusercontent.com/u/25981233?v=4","gravatar_id":"","url":"https://api.github.com/users/gustavokretzer88","html_url":"https://github.com/gustavokretzer88","followers_url":"https://api.github.com/users/gustavokretzer88/followers","following_url":"https://api.github.com/users/gustavokretzer88/following{/other_user}","gists_url":"https://api.github.com/users/gustavokretzer88/gists{/gist_id}","starred_url":"https://api.github.com/users/gustavokretzer88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gustavokretzer88/subscriptions","organizations_url":"https://api.github.com/users/gustavokretzer88/orgs","repos_url":"https://api.github.com/users/gustavokretzer88/repos","events_url":"https://api.github.com/users/gustavokretzer88/events{/privacy}","received_events_url":"https://api.github.com/users/gustavokretzer88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-02-28T18:19:48Z","updated_at":"2018-03-01T17:01:28Z","closed_at":null,"author_association":"NONE","body":"To help us debug your issue please explain:\r\n\r\n- [x] I've read the [CONTRIBUTING guide](https://raw.githubusercontent.com/conan-io/conan/develop/.github/CONTRIBUTING.md).\r\n- [x] I've specified the Conan version, operating system version and any tool that can be relevant.\r\n- [x] I've explained the steps to reproduce the error or the motivation/use case of the question/suggestion.\r\n\r\nHello!\r\n\r\nI have a conan project that generates an installer with CMake and CPack. In the windows version (x86_64) we include in the package a dynamic library generated in another project (myDriver). I put it as build_requirements, however we have to include this driver in the x86 and x86_64 versions.\r\n\r\nFor the driver in x86_64 version we get trivial.\r\n\r\nIn conanfile.py\r\n```\r\n     def build_requirements self):\r\n         self.build_requires.add(\"myDriver/1.0.0@user/stable\") # get x86_64 version, OK.\r\n         if self.settings.arch == \"x86_64\":\r\n         \t# self.build_requires.add(\"myDriver/1.0.0@user/stable\") # Same build_requires, but in the x86 version. How do I do?\r\n```\r\nIn CMakeList.txt using CPACK\r\n```\r\nINSTALL (FILES ${CONAN_BIN_DIRS_MYDRIVER}/myDriver.dll COMPONENT drivers DESTINATION lib64) \r\nINSTALL (FILES ${CONAN_BIN_DIRS_?????}/myDriver.dll COMPONENT drivers DESTINATION lib32) \r\n```\r\nBut how can I get the reference of myDriver in both x86 and x86_64 versions?"},"comment":{"url":"https://api.github.com/repos/conan-io/conan/issues/comments/369659208","html_url":"https://github.com/conan-io/conan/issues/2543#issuecomment-369659208","issue_url":"https://api.github.com/repos/conan-io/conan/issues/2543","id":369659208,"user":{"login":"gustavokretzer88","id":25981233,"avatar_url":"https://avatars2.githubusercontent.com/u/25981233?v=4","gravatar_id":"","url":"https://api.github.com/users/gustavokretzer88","html_url":"https://github.com/gustavokretzer88","followers_url":"https://api.github.com/users/gustavokretzer88/followers","following_url":"https://api.github.com/users/gustavokretzer88/following{/other_user}","gists_url":"https://api.github.com/users/gustavokretzer88/gists{/gist_id}","starred_url":"https://api.github.com/users/gustavokretzer88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gustavokretzer88/subscriptions","organizations_url":"https://api.github.com/users/gustavokretzer88/orgs","repos_url":"https://api.github.com/users/gustavokretzer88/repos","events_url":"https://api.github.com/users/gustavokretzer88/events{/privacy}","received_events_url":"https://api.github.com/users/gustavokretzer88/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T17:01:28Z","updated_at":"2018-03-01T17:01:28Z","author_association":"NONE","body":"My application does not consume the DLLs that is generated in \"driver\". Other applications on the client machine will consume this dll (for example, Firefox runs on 64-bit, it soon consumes the dll in 64-bit, Acrobat Reader runs on 32-bit, will soon consume the dll in 32-bit, considering the client's Windows in 64-bit).\r\nI have not been able to reference a same \"build dependency\" in two different architectures to be able to package with the installer of my application via conan.\r\n\r\nI'm going in there in the slack."}}
{"actor":{"display_login":"gustavokretzer88"}}