{"action":"created","issue":{"url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/213","labels_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/213/comments","events_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/213/events","html_url":"https://github.com/Alexpux/MSYS2-packages/issues/213","id":67822716,"number":213,"title":"Feature request: Environment variables for msys2 root in Windows environment with Windows path-syntax","user":{"login":"bagong","id":1502057,"avatar_url":"https://avatars.githubusercontent.com/u/1502057?v=3","gravatar_id":"","url":"https://api.github.com/users/bagong","html_url":"https://github.com/bagong","followers_url":"https://api.github.com/users/bagong/followers","following_url":"https://api.github.com/users/bagong/following{/other_user}","gists_url":"https://api.github.com/users/bagong/gists{/gist_id}","starred_url":"https://api.github.com/users/bagong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagong/subscriptions","organizations_url":"https://api.github.com/users/bagong/orgs","repos_url":"https://api.github.com/users/bagong/repos","events_url":"https://api.github.com/users/bagong/events{/privacy}","received_events_url":"https://api.github.com/users/bagong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-11T19:19:41Z","updated_at":"2015-04-11T21:50:09Z","closed_at":null,"body":"Hi,\r\n\r\nI am trying to make cmake find-modules find libraries installed in the mingw32/64 tree, and I would like to do it in a way that a cmake running directly under Windows can also find them. Them mingw32/bin, lib etc folders I presume can be relied upon as hardcoded path elements, but the msys root folder and Win-drive could be called almost anything, right? Wouldn't it be useful to have a Windows system env variable that returns the msys root path? Or is there somethink like that?"},"comment":{"url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/comments/91932978","html_url":"https://github.com/Alexpux/MSYS2-packages/issues/213#issuecomment-91932978","issue_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/213","id":91932978,"user":{"login":"bagong","id":1502057,"avatar_url":"https://avatars.githubusercontent.com/u/1502057?v=3","gravatar_id":"","url":"https://api.github.com/users/bagong","html_url":"https://github.com/bagong","followers_url":"https://api.github.com/users/bagong/followers","following_url":"https://api.github.com/users/bagong/following{/other_user}","gists_url":"https://api.github.com/users/bagong/gists{/gist_id}","starred_url":"https://api.github.com/users/bagong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagong/subscriptions","organizations_url":"https://api.github.com/users/bagong/orgs","repos_url":"https://api.github.com/users/bagong/repos","events_url":"https://api.github.com/users/bagong/events{/privacy}","received_events_url":"https://api.github.com/users/bagong/received_events","type":"User","site_admin":false},"created_at":"2015-04-11T21:50:09Z","updated_at":"2015-04-11T21:50:09Z","body":"Sorry, my question must be put confusing. I want cmake to (optionally) pick up libraries and headers stored in the mingw-tree (which is a subfolder of the msys2 root) in order to build another application alltogether. This app I would like to have the option to build outside of msys. So it's not msys libraries I want, but \"native windows\" ones stored in the mingw folders.\r\nSo to give a specific example: build an application called supercollider with cmake, that depends on libraries and headers from libsndfile, portaudio, fftw and readline. Using cmake I can build supercollider outside of msys (I think), but it would be helpful if I could address the locations of the libraries with variables returning specifics of a users msys2 install. One user might have the libsndfile-1.dll in G:\\msys64\\mingw32\\bin, another one in C:\\msys\\mingw32\\bin. That first part of the path I would like to read from an environment variable."}}