{"action":"created","comment":{"url":"https://api.github.com/repos/ruslo/hunter/pulls/comments/152299463","pull_request_review_id":78134532,"id":152299463,"diff_hunk":"@@ -0,0 +1,24 @@\n+cmake_minimum_required(VERSION 3.0)\n+\n+function(hunter_parse_boost_config_macros outvar)\n+  # parse ARGN to convert 'CONFIG_MACRO=id1;id2;CONFIG_MACRO_id3=3' to 'id1;id2;id3=3'\n+  unset(boost_config_macros_list)\n+  set(config_macros_without_value_mode FALSE)\n+  foreach(arg in ${ARGN})\n+    if (\"${arg}\" MATCHES \"[^=]+=.+\")\n+      set(config_macros_without_value_mode FALSE)\n+    endif()\n+    if(config_macros_without_value_mode)\n+      # CONFIG_MACRO=id_1 id_2 ... id_n -> APPEND id_n\n+      list(APPEND boost_config_macros_list \"${arg}\")\n+    elseif(\"${arg}\" MATCHES \"^CONFIG_MACRO=(.+)\" )\n+      # CONFIG_MACRO=id_1 id_2 ... id_n -> APPEND id_1\n+      list(APPEND boost_config_macros_list \"${CMAKE_MATCH_1}\")\n+      set(config_macros_without_value_mode TRUE)\n+    elseif(\"${arg}\" MATCHES \"^CONFIG_MACRO_([^=]+=.+)\" )\n+      # CONFIG_MACRO_id=val -> APPEND id=val\n+      list(APPEND boost_config_macros_list \"${CMAKE_MATCH_1}\")\n+    endif()\n+  endforeach()\n+  set(${outvar} ${boost_config_macros_list} PARENT_SCOPE)\n+endfunction(hunter_parse_boost_config_macros)","path":"cmake/modules/hunter_parse_boost_config_macros.cmake","position":24,"original_position":24,"commit_id":"e4ab64b863b6529f88eb1b4f88897d58d249cf62","original_commit_id":"e4ab64b863b6529f88eb1b4f88897d58d249cf62","user":{"login":"ruslo","id":4346993,"avatar_url":"https://avatars2.githubusercontent.com/u/4346993?v=4","gravatar_id":"","url":"https://api.github.com/users/ruslo","html_url":"https://github.com/ruslo","followers_url":"https://api.github.com/users/ruslo/followers","following_url":"https://api.github.com/users/ruslo/following{/other_user}","gists_url":"https://api.github.com/users/ruslo/gists{/gist_id}","starred_url":"https://api.github.com/users/ruslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruslo/subscriptions","organizations_url":"https://api.github.com/users/ruslo/orgs","repos_url":"https://api.github.com/users/ruslo/repos","events_url":"https://api.github.com/users/ruslo/events{/privacy}","received_events_url":"https://api.github.com/users/ruslo/received_events","type":"User","site_admin":false},"body":"Use `endfunction()`.","created_at":"2017-11-21T14:58:36Z","updated_at":"2017-11-21T15:00:21Z","html_url":"https://github.com/ruslo/hunter/pull/1220#discussion_r152299463","pull_request_url":"https://api.github.com/repos/ruslo/hunter/pulls/1220","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/ruslo/hunter/pulls/comments/152299463"},"html":{"href":"https://github.com/ruslo/hunter/pull/1220#discussion_r152299463"},"pull_request":{"href":"https://api.github.com/repos/ruslo/hunter/pulls/1220"}}},"pull_request":{"url":"https://api.github.com/repos/ruslo/hunter/pulls/1220","id":153742510,"html_url":"https://github.com/ruslo/hunter/pull/1220","diff_url":"https://github.com/ruslo/hunter/pull/1220.diff","patch_url":"https://github.com/ruslo/hunter/pull/1220.patch","issue_url":"https://api.github.com/repos/ruslo/hunter/issues/1220","number":1220,"state":"open","locked":false,"title":"fix build error when Boost CONFIG_MACRO is the last of the CMAKE_ARGS","user":{"login":"ibasrt0","id":26284645,"avatar_url":"https://avatars3.githubusercontent.com/u/26284645?v=4","gravatar_id":"","url":"https://api.github.com/users/ibasrt0","html_url":"https://github.com/ibasrt0","followers_url":"https://api.github.com/users/ibasrt0/followers","following_url":"https://api.github.com/users/ibasrt0/following{/other_user}","gists_url":"https://api.github.com/users/ibasrt0/gists{/gist_id}","starred_url":"https://api.github.com/users/ibasrt0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibasrt0/subscriptions","organizations_url":"https://api.github.com/users/ibasrt0/orgs","repos_url":"https://api.github.com/users/ibasrt0/repos","events_url":"https://api.github.com/users/ibasrt0/events{/privacy}","received_events_url":"https://api.github.com/users/ibasrt0/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-11-20T21:47:40Z","updated_at":"2017-11-21T15:00:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57eab9e8983de995f2e97c43509bf7d03062158c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ruslo/hunter/pulls/1220/commits","review_comments_url":"https://api.github.com/repos/ruslo/hunter/pulls/1220/comments","review_comment_url":"https://api.github.com/repos/ruslo/hunter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ruslo/hunter/issues/1220/comments","statuses_url":"https://api.github.com/repos/ruslo/hunter/statuses/e4ab64b863b6529f88eb1b4f88897d58d249cf62","head":{"label":"ibasrt0:pr/fix-boost-CONFIG_MACRO","ref":"pr/fix-boost-CONFIG_MACRO","sha":"e4ab64b863b6529f88eb1b4f88897d58d249cf62","user":{"login":"ibasrt0","id":26284645,"avatar_url":"https://avatars3.githubusercontent.com/u/26284645?v=4","gravatar_id":"","url":"https://api.github.com/users/ibasrt0","html_url":"https://github.com/ibasrt0","followers_url":"https://api.github.com/users/ibasrt0/followers","following_url":"https://api.github.com/users/ibasrt0/following{/other_user}","gists_url":"https://api.github.com/users/ibasrt0/gists{/gist_id}","starred_url":"https://api.github.com/users/ibasrt0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibasrt0/subscriptions","organizations_url":"https://api.github.com/users/ibasrt0/orgs","repos_url":"https://api.github.com/users/ibasrt0/repos","events_url":"https://api.github.com/users/ibasrt0/events{/privacy}","received_events_url":"https://api.github.com/users/ibasrt0/received_events","type":"User","site_admin":false},"repo":{"id":110674573,"name":"hunter","full_name":"ibasrt0/hunter","owner":{"login":"ibasrt0","id":26284645,"avatar_url":"https://avatars3.githubusercontent.com/u/26284645?v=4","gravatar_id":"","url":"https://api.github.com/users/ibasrt0","html_url":"https://github.com/ibasrt0","followers_url":"https://api.github.com/users/ibasrt0/followers","following_url":"https://api.github.com/users/ibasrt0/following{/other_user}","gists_url":"https://api.github.com/users/ibasrt0/gists{/gist_id}","starred_url":"https://api.github.com/users/ibasrt0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibasrt0/subscriptions","organizations_url":"https://api.github.com/users/ibasrt0/orgs","repos_url":"https://api.github.com/users/ibasrt0/repos","events_url":"https://api.github.com/users/ibasrt0/events{/privacy}","received_events_url":"https://api.github.com/users/ibasrt0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ibasrt0/hunter","description":":package: CMake-driven cross-platform package manager for C++. Linux, Mac, Windows, iOS, Android, Raspberry Pi.","fork":true,"url":"https://api.github.com/repos/ibasrt0/hunter","forks_url":"https://api.github.com/repos/ibasrt0/hunter/forks","keys_url":"https://api.github.com/repos/ibasrt0/hunter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ibasrt0/hunter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ibasrt0/hunter/teams","hooks_url":"https://api.github.com/repos/ibasrt0/hunter/hooks","issue_events_url":"https://api.github.com/repos/ibasrt0/hunter/issues/events{/number}","events_url":"https://api.github.com/repos/ibasrt0/hunter/events","assignees_url":"https://api.github.com/repos/ibasrt0/hunter/assignees{/user}","branches_url":"https://api.github.com/repos/ibasrt0/hunter/branches{/branch}","tags_url":"https://api.github.com/repos/ibasrt0/hunter/tags","blobs_url":"https://api.github.com/repos/ibasrt0/hunter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ibasrt0/hunter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ibasrt0/hunter/git/refs{/sha}","trees_url":"https://api.github.com/repos/ibasrt0/hunter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ibasrt0/hunter/statuses/{sha}","languages_url":"https://api.github.com/repos/ibasrt0/hunter/languages","stargazers_url":"https://api.github.com/repos/ibasrt0/hunter/stargazers","contributors_url":"https://api.github.com/repos/ibasrt0/hunter/contributors","subscribers_url":"https://api.github.com/repos/ibasrt0/hunter/subscribers","subscription_url":"https://api.github.com/repos/ibasrt0/hunter/subscription","commits_url":"https://api.github.com/repos/ibasrt0/hunter/commits{/sha}","git_commits_url":"https://api.github.com/repos/ibasrt0/hunter/git/commits{/sha}","comments_url":"https://api.github.com/repos/ibasrt0/hunter/comments{/number}","issue_comment_url":"https://api.github.com/repos/ibasrt0/hunter/issues/comments{/number}","contents_url":"https://api.github.com/repos/ibasrt0/hunter/contents/{+path}","compare_url":"https://api.github.com/repos/ibasrt0/hunter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ibasrt0/hunter/merges","archive_url":"https://api.github.com/repos/ibasrt0/hunter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ibasrt0/hunter/downloads","issues_url":"https://api.github.com/repos/ibasrt0/hunter/issues{/number}","pulls_url":"https://api.github.com/repos/ibasrt0/hunter/pulls{/number}","milestones_url":"https://api.github.com/repos/ibasrt0/hunter/milestones{/number}","notifications_url":"https://api.github.com/repos/ibasrt0/hunter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ibasrt0/hunter/labels{/name}","releases_url":"https://api.github.com/repos/ibasrt0/hunter/releases{/id}","deployments_url":"https://api.github.com/repos/ibasrt0/hunter/deployments","created_at":"2017-11-14T10:15:10Z","updated_at":"2017-11-14T10:15:14Z","pushed_at":"2017-11-21T14:39:53Z","git_url":"git://github.com/ibasrt0/hunter.git","ssh_url":"git@github.com:ibasrt0/hunter.git","clone_url":"https://github.com/ibasrt0/hunter.git","svn_url":"https://github.com/ibasrt0/hunter","homepage":"http://goo.gl/wiAG","size":5239,"stargazers_count":0,"watchers_count":0,"language":"CMake","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ruslo:master","ref":"master","sha":"b818355f23a8d90541a3843eb867019810235484","user":{"login":"ruslo","id":4346993,"avatar_url":"https://avatars2.githubusercontent.com/u/4346993?v=4","gravatar_id":"","url":"https://api.github.com/users/ruslo","html_url":"https://github.com/ruslo","followers_url":"https://api.github.com/users/ruslo/followers","following_url":"https://api.github.com/users/ruslo/following{/other_user}","gists_url":"https://api.github.com/users/ruslo/gists{/gist_id}","starred_url":"https://api.github.com/users/ruslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruslo/subscriptions","organizations_url":"https://api.github.com/users/ruslo/orgs","repos_url":"https://api.github.com/users/ruslo/repos","events_url":"https://api.github.com/users/ruslo/events{/privacy}","received_events_url":"https://api.github.com/users/ruslo/received_events","type":"User","site_admin":false},"repo":{"id":14202056,"name":"hunter","full_name":"ruslo/hunter","owner":{"login":"ruslo","id":4346993,"avatar_url":"https://avatars2.githubusercontent.com/u/4346993?v=4","gravatar_id":"","url":"https://api.github.com/users/ruslo","html_url":"https://github.com/ruslo","followers_url":"https://api.github.com/users/ruslo/followers","following_url":"https://api.github.com/users/ruslo/following{/other_user}","gists_url":"https://api.github.com/users/ruslo/gists{/gist_id}","starred_url":"https://api.github.com/users/ruslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruslo/subscriptions","organizations_url":"https://api.github.com/users/ruslo/orgs","repos_url":"https://api.github.com/users/ruslo/repos","events_url":"https://api.github.com/users/ruslo/events{/privacy}","received_events_url":"https://api.github.com/users/ruslo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ruslo/hunter","description":":package: CMake-driven cross-platform package manager for C++. Linux, Mac, Windows, iOS, Android, Raspberry Pi.","fork":false,"url":"https://api.github.com/repos/ruslo/hunter","forks_url":"https://api.github.com/repos/ruslo/hunter/forks","keys_url":"https://api.github.com/repos/ruslo/hunter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ruslo/hunter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ruslo/hunter/teams","hooks_url":"https://api.github.com/repos/ruslo/hunter/hooks","issue_events_url":"https://api.github.com/repos/ruslo/hunter/issues/events{/number}","events_url":"https://api.github.com/repos/ruslo/hunter/events","assignees_url":"https://api.github.com/repos/ruslo/hunter/assignees{/user}","branches_url":"https://api.github.com/repos/ruslo/hunter/branches{/branch}","tags_url":"https://api.github.com/repos/ruslo/hunter/tags","blobs_url":"https://api.github.com/repos/ruslo/hunter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ruslo/hunter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ruslo/hunter/git/refs{/sha}","trees_url":"https://api.github.com/repos/ruslo/hunter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ruslo/hunter/statuses/{sha}","languages_url":"https://api.github.com/repos/ruslo/hunter/languages","stargazers_url":"https://api.github.com/repos/ruslo/hunter/stargazers","contributors_url":"https://api.github.com/repos/ruslo/hunter/contributors","subscribers_url":"https://api.github.com/repos/ruslo/hunter/subscribers","subscription_url":"https://api.github.com/repos/ruslo/hunter/subscription","commits_url":"https://api.github.com/repos/ruslo/hunter/commits{/sha}","git_commits_url":"https://api.github.com/repos/ruslo/hunter/git/commits{/sha}","comments_url":"https://api.github.com/repos/ruslo/hunter/comments{/number}","issue_comment_url":"https://api.github.com/repos/ruslo/hunter/issues/comments{/number}","contents_url":"https://api.github.com/repos/ruslo/hunter/contents/{+path}","compare_url":"https://api.github.com/repos/ruslo/hunter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ruslo/hunter/merges","archive_url":"https://api.github.com/repos/ruslo/hunter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ruslo/hunter/downloads","issues_url":"https://api.github.com/repos/ruslo/hunter/issues{/number}","pulls_url":"https://api.github.com/repos/ruslo/hunter/pulls{/number}","milestones_url":"https://api.github.com/repos/ruslo/hunter/milestones{/number}","notifications_url":"https://api.github.com/repos/ruslo/hunter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ruslo/hunter/labels{/name}","releases_url":"https://api.github.com/repos/ruslo/hunter/releases{/id}","deployments_url":"https://api.github.com/repos/ruslo/hunter/deployments","created_at":"2013-11-07T11:32:19Z","updated_at":"2017-11-21T11:04:47Z","pushed_at":"2017-11-21T14:39:53Z","git_url":"git://github.com/ruslo/hunter.git","ssh_url":"git@github.com:ruslo/hunter.git","clone_url":"https://github.com/ruslo/hunter.git","svn_url":"https://github.com/ruslo/hunter","homepage":"http://goo.gl/wiAG","size":5222,"stargazers_count":970,"watchers_count":970,"language":"CMake","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":259,"mirror_url":null,"archived":false,"open_issues_count":204,"forks":259,"open_issues":204,"watchers":970,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ruslo/hunter/pulls/1220"},"html":{"href":"https://github.com/ruslo/hunter/pull/1220"},"issue":{"href":"https://api.github.com/repos/ruslo/hunter/issues/1220"},"comments":{"href":"https://api.github.com/repos/ruslo/hunter/issues/1220/comments"},"review_comments":{"href":"https://api.github.com/repos/ruslo/hunter/pulls/1220/comments"},"review_comment":{"href":"https://api.github.com/repos/ruslo/hunter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ruslo/hunter/pulls/1220/commits"},"statuses":{"href":"https://api.github.com/repos/ruslo/hunter/statuses/e4ab64b863b6529f88eb1b4f88897d58d249cf62"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ruslo"}}