{"action":"opened","issue":{"url":"https://api.github.com/repos/sakra/cotire/issues/75","labels_url":"https://api.github.com/repos/sakra/cotire/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/sakra/cotire/issues/75/comments","events_url":"https://api.github.com/repos/sakra/cotire/issues/75/events","html_url":"https://github.com/sakra/cotire/issues/75","id":106476061,"number":75,"title":"CMAKE_OSX_SYSROOT with an SDK name is not handled properly","user":{"login":"teki","id":5516,"avatar_url":"https://avatars.githubusercontent.com/u/5516?v=3","gravatar_id":"","url":"https://api.github.com/users/teki","html_url":"https://github.com/teki","followers_url":"https://api.github.com/users/teki/followers","following_url":"https://api.github.com/users/teki/following{/other_user}","gists_url":"https://api.github.com/users/teki/gists{/gist_id}","starred_url":"https://api.github.com/users/teki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teki/subscriptions","organizations_url":"https://api.github.com/users/teki/orgs","repos_url":"https://api.github.com/users/teki/repos","events_url":"https://api.github.com/users/teki/events{/privacy}","received_events_url":"https://api.github.com/users/teki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-15T04:30:45Z","updated_at":"2015-09-15T04:30:45Z","closed_at":null,"body":"\"${CMAKE_${_language}_SYSROOT_FLAG}\" \"${CMAKE_OSX_SYSROOT}\" will break when CMAKE_OSX_SYSROOT is not a path.\r\nCMAKE_OSX_SYSROOT was originally meant to be used with the --sysroot option of the compiler, which accepts sdk names (like macosx10.9) and paths too.\r\n\r\nCMake handles this by replacing the value of CMAKE_OSX_SYSROOT with the path for non Xcode generators, see the end of CMake/Modules/Platform/Darwin-Initialize.cmake:\r\n```\r\nif(NOT \"${CMAKE_GENERATOR}\" MATCHES \"Xcode\")\r\n    set(CMAKE_OSX_SYSROOT \"${_CMAKE_OSX_SYSROOT_PATH}\")\r\nendif()\r\n```"}}