{"action":"closed","issue":{"url":"https://api.github.com/repos/cnjinhao/nana/issues/76","labels_url":"https://api.github.com/repos/cnjinhao/nana/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/cnjinhao/nana/issues/76/comments","events_url":"https://api.github.com/repos/cnjinhao/nana/issues/76/events","html_url":"https://github.com/cnjinhao/nana/issues/76","id":108504425,"number":76,"title":"cmake thread default for MinGW out of date","user":{"login":"htzh","id":5956967,"avatar_url":"https://avatars.githubusercontent.com/u/5956967?v=3","gravatar_id":"","url":"https://api.github.com/users/htzh","html_url":"https://github.com/htzh","followers_url":"https://api.github.com/users/htzh/followers","following_url":"https://api.github.com/users/htzh/following{/other_user}","gists_url":"https://api.github.com/users/htzh/gists{/gist_id}","starred_url":"https://api.github.com/users/htzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htzh/subscriptions","organizations_url":"https://api.github.com/users/htzh/orgs","repos_url":"https://api.github.com/users/htzh/repos","events_url":"https://api.github.com/users/htzh/events{/privacy}","received_events_url":"https://api.github.com/users/htzh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-27T00:22:23Z","updated_at":"2015-09-27T09:08:55Z","closed_at":"2015-09-27T09:08:55Z","body":"NANA_THREAD_NOT_SUPPORTED is hard coded in [CMakeLists.txt](https://github.com/cnjinhao/nana/blob/master/CMakeLists.txt#L58) to ON. I think it should be OFF by default esp. for non-gui users of cmake. Better yet this could be automatically tested. I followed the example given in this [SO post](http://stackoverflow.com/questions/14933172/how-can-i-add-a-minimum-compiler-version-requisite) and wrote a test for this:\r\n```\r\noption(NANA_THREAD_NOT_SUPPORTED \"Use this flag if MinGW version is older than 4.8.1\" OFF)\r\nif(CMAKE_CXX_COMPILER_ID STREQUAL \"GNU\")\r\n  if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS \"4.8.1\")\r\n    option(NANA_THREAD_NOT_SUPPORTED \"Use this flag if MinGW version is older than 4.8.1\" ON)\r\n  endif()\r\nendif()\r\n```"}}