{"comment":{"created_at":"2011-10-11T13:58:52Z","body":"OK, so hiding OPTION inside an IF works. I can hide the option completely so that it won't get used at all using something like this:\r\n\r\n```cmake\r\n# Universal binary only makes sense on OSX\r\nIF (${CMAKE_SYSTEM_NAME} MATCHES \"Darwin\")\r\n\tOPTION (OSX_UNIVERSAL \"Build an OSX universal binary\" OFF)\r\n\tIF (OSX_UNIVERSAL)\r\n\t\tSET(CMAKE_C_FLAGS \"${CMAKE_C_FLAGS} -arch i386 -arch x86_64\")\r\n\tENDIF ()\r\nENDIF ()\r\n```\r\n\r\nbut I don't know how elegant that's considered.","updated_at":"2011-10-11T13:58:52Z","url":"https://api.github.com/repos/libgit2/libgit2/issues/comments/2361590","id":2361590,"user":{"avatar_url":"https://secure.gravatar.com/avatar/1c611ca5a1b5aaf2da4ce23f2887de2d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/carlosmn","id":335443,"login":"carlosmn"}},"action":"created","issue":{"number":451,"created_at":"2011-10-11T13:36:33Z","pull_request":{"diff_url":"https://github.com/libgit2/libgit2/pull/451.diff","patch_url":"https://github.com/libgit2/libgit2/pull/451.patch","html_url":"https://github.com/libgit2/libgit2/pull/451"},"body":"We silently ignore it if we're not running on Darwin (OSX).\r\n\r\nThis should do it. Could somebody with access to OSX confirm?","comments":6,"title":"Add OSX universal binary option to CMake","updated_at":"2011-10-11T13:58:52Z","url":"https://api.github.com/repos/libgit2/libgit2/issues/451","id":1874673,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/1c611ca5a1b5aaf2da4ce23f2887de2d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/carlosmn","id":335443,"login":"carlosmn"},"html_url":"https://github.com/libgit2/libgit2/issues/451","labels":[],"state":"open"},"legacy":{"issue_id":1874673,"comment_id":2361590}}