{"action":"created","comment":{"url":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls/comments/42227875","id":42227875,"diff_hunk":"@@ -0,0 +1,180 @@\n+SET(PACKAGE osm2pgsql)\n+SET(PACKAGE_NAME osm2pgsql)\n+\n+CMAKE_MINIMUM_REQUIRED(VERSION 2.8.7)\n+\n+PROJECT(osm2pgsql)\n+\n+list(APPEND CMAKE_MODULE_PATH \"${CMAKE_SOURCE_DIR}/cmake\")\n+\n+SET(DATA_DIR \\\".\\\")\n+\n+OPTION(BUILD_TESTS \"Build with tests\" OFF)\n+\n+if(\"${PROJECT_SOURCE_DIR}\" STREQUAL \"${PROJECT_BINARY_DIR}\")\n+  message(FATAL_ERROR \"In-source builds are not allowed, please use a separate build directory like `mkdir biuld && cd build && cmake ..`\")\n+endif()\n+\n+execute_process (COMMAND git describe OUTPUT_VARIABLE PACKAGE_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)\n+\n+message(STATUS \"Building osm2pgsql ${PACKAGE_VERSION}\")\n+\n+if (NOT CMAKE_BUILD_TYPE)\n+  set(CMAKE_BUILD_TYPE=Release)\n+endif()\n+\n+# Just in case user installed RPMs from http://yum.postgresql.org/\n+list(APPEND PostgreSQL_ADDITIONAL_SEARCH_PATHS /usr/pgsql-9.3 /usr/pgsql-9.4)","path":"CMakeLists.txt","position":27,"original_position":27,"commit_id":"025b3cc2b83a2ba2ac838682553b89caa76b1d3a","original_commit_id":"025b3cc2b83a2ba2ac838682553b89caa76b1d3a","user":{"login":"alex85k","id":4124648,"avatar_url":"https://avatars.githubusercontent.com/u/4124648?v=3","gravatar_id":"","url":"https://api.github.com/users/alex85k","html_url":"https://github.com/alex85k","followers_url":"https://api.github.com/users/alex85k/followers","following_url":"https://api.github.com/users/alex85k/following{/other_user}","gists_url":"https://api.github.com/users/alex85k/gists{/gist_id}","starred_url":"https://api.github.com/users/alex85k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex85k/subscriptions","organizations_url":"https://api.github.com/users/alex85k/orgs","repos_url":"https://api.github.com/users/alex85k/repos","events_url":"https://api.github.com/users/alex85k/events{/privacy}","received_events_url":"https://api.github.com/users/alex85k/received_events","type":"User","site_admin":false},"body":"Let us drop the paths for now and describe it in readme for different systems...","created_at":"2015-10-16T10:14:23Z","updated_at":"2015-10-16T10:14:23Z","html_url":"https://github.com/openstreetmap/osm2pgsql/pull/460#discussion_r42227875","pull_request_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls/460","_links":{"self":{"href":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls/comments/42227875"},"html":{"href":"https://github.com/openstreetmap/osm2pgsql/pull/460#discussion_r42227875"},"pull_request":{"href":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls/460"}}},"pull_request":{"url":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls/460","id":47841393,"html_url":"https://github.com/openstreetmap/osm2pgsql/pull/460","diff_url":"https://github.com/openstreetmap/osm2pgsql/pull/460.diff","patch_url":"https://github.com/openstreetmap/osm2pgsql/pull/460.patch","issue_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/issues/460","number":460,"state":"open","locked":false,"title":"Add cmake build scripts and appveyor.yml","user":{"login":"alex85k","id":4124648,"avatar_url":"https://avatars.githubusercontent.com/u/4124648?v=3","gravatar_id":"","url":"https://api.github.com/users/alex85k","html_url":"https://github.com/alex85k","followers_url":"https://api.github.com/users/alex85k/followers","following_url":"https://api.github.com/users/alex85k/following{/other_user}","gists_url":"https://api.github.com/users/alex85k/gists{/gist_id}","starred_url":"https://api.github.com/users/alex85k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex85k/subscriptions","organizations_url":"https://api.github.com/users/alex85k/orgs","repos_url":"https://api.github.com/users/alex85k/repos","events_url":"https://api.github.com/users/alex85k/events{/privacy}","received_events_url":"https://api.github.com/users/alex85k/received_events","type":"User","site_admin":false},"body":"Here is my attemp to make cmake build scripts available for main repository.\r\nI have modified .travis.yml to build one version with cmake too. \r\n\r\nTo make appveyor work like here https://ci.appveyor.com/project/alex85k/osm2pgsql , you need to login and enable it for main repository.\r\n\r\nNotes:\r\n - Have two warnings in cmake build, can not apply -Werror (some flags??)\r\nhttps://travis-ci.org/openstreetmap/osm2pgsql/jobs/85616194\r\n - In appveyor.yml there is ACCOUNT variable and `curl -T` - it is uploading windows build to my shared folder https://yadi.sk/d/ACuCgfNIRUULH and should be better replaced in production\r\n - In appveyor.yml there is a download of Windows dependenices from my Dropbox. Better to be placed somewhere else :)","created_at":"2015-10-15T21:03:08Z","updated_at":"2015-10-16T10:14:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c96ff35c9589549437237abe3e45984c363017e6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls/460/commits","review_comments_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls/460/comments","review_comment_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/issues/460/comments","statuses_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/statuses/025b3cc2b83a2ba2ac838682553b89caa76b1d3a","head":{"label":"alex85k:cmake","ref":"cmake","sha":"025b3cc2b83a2ba2ac838682553b89caa76b1d3a","user":{"login":"alex85k","id":4124648,"avatar_url":"https://avatars.githubusercontent.com/u/4124648?v=3","gravatar_id":"","url":"https://api.github.com/users/alex85k","html_url":"https://github.com/alex85k","followers_url":"https://api.github.com/users/alex85k/followers","following_url":"https://api.github.com/users/alex85k/following{/other_user}","gists_url":"https://api.github.com/users/alex85k/gists{/gist_id}","starred_url":"https://api.github.com/users/alex85k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex85k/subscriptions","organizations_url":"https://api.github.com/users/alex85k/orgs","repos_url":"https://api.github.com/users/alex85k/repos","events_url":"https://api.github.com/users/alex85k/events{/privacy}","received_events_url":"https://api.github.com/users/alex85k/received_events","type":"User","site_admin":false},"repo":{"id":17830654,"name":"osm2pgsql","full_name":"alex85k/osm2pgsql","owner":{"login":"alex85k","id":4124648,"avatar_url":"https://avatars.githubusercontent.com/u/4124648?v=3","gravatar_id":"","url":"https://api.github.com/users/alex85k","html_url":"https://github.com/alex85k","followers_url":"https://api.github.com/users/alex85k/followers","following_url":"https://api.github.com/users/alex85k/following{/other_user}","gists_url":"https://api.github.com/users/alex85k/gists{/gist_id}","starred_url":"https://api.github.com/users/alex85k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex85k/subscriptions","organizations_url":"https://api.github.com/users/alex85k/orgs","repos_url":"https://api.github.com/users/alex85k/repos","events_url":"https://api.github.com/users/alex85k/events{/privacy}","received_events_url":"https://api.github.com/users/alex85k/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alex85k/osm2pgsql","description":"OpenStreetMap data to PostgreSQL converter","fork":true,"url":"https://api.github.com/repos/alex85k/osm2pgsql","forks_url":"https://api.github.com/repos/alex85k/osm2pgsql/forks","keys_url":"https://api.github.com/repos/alex85k/osm2pgsql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alex85k/osm2pgsql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alex85k/osm2pgsql/teams","hooks_url":"https://api.github.com/repos/alex85k/osm2pgsql/hooks","issue_events_url":"https://api.github.com/repos/alex85k/osm2pgsql/issues/events{/number}","events_url":"https://api.github.com/repos/alex85k/osm2pgsql/events","assignees_url":"https://api.github.com/repos/alex85k/osm2pgsql/assignees{/user}","branches_url":"https://api.github.com/repos/alex85k/osm2pgsql/branches{/branch}","tags_url":"https://api.github.com/repos/alex85k/osm2pgsql/tags","blobs_url":"https://api.github.com/repos/alex85k/osm2pgsql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alex85k/osm2pgsql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alex85k/osm2pgsql/git/refs{/sha}","trees_url":"https://api.github.com/repos/alex85k/osm2pgsql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alex85k/osm2pgsql/statuses/{sha}","languages_url":"https://api.github.com/repos/alex85k/osm2pgsql/languages","stargazers_url":"https://api.github.com/repos/alex85k/osm2pgsql/stargazers","contributors_url":"https://api.github.com/repos/alex85k/osm2pgsql/contributors","subscribers_url":"https://api.github.com/repos/alex85k/osm2pgsql/subscribers","subscription_url":"https://api.github.com/repos/alex85k/osm2pgsql/subscription","commits_url":"https://api.github.com/repos/alex85k/osm2pgsql/commits{/sha}","git_commits_url":"https://api.github.com/repos/alex85k/osm2pgsql/git/commits{/sha}","comments_url":"https://api.github.com/repos/alex85k/osm2pgsql/comments{/number}","issue_comment_url":"https://api.github.com/repos/alex85k/osm2pgsql/issues/comments{/number}","contents_url":"https://api.github.com/repos/alex85k/osm2pgsql/contents/{+path}","compare_url":"https://api.github.com/repos/alex85k/osm2pgsql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alex85k/osm2pgsql/merges","archive_url":"https://api.github.com/repos/alex85k/osm2pgsql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alex85k/osm2pgsql/downloads","issues_url":"https://api.github.com/repos/alex85k/osm2pgsql/issues{/number}","pulls_url":"https://api.github.com/repos/alex85k/osm2pgsql/pulls{/number}","milestones_url":"https://api.github.com/repos/alex85k/osm2pgsql/milestones{/number}","notifications_url":"https://api.github.com/repos/alex85k/osm2pgsql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alex85k/osm2pgsql/labels{/name}","releases_url":"https://api.github.com/repos/alex85k/osm2pgsql/releases{/id}","created_at":"2014-03-17T14:26:47Z","updated_at":"2015-08-17T18:35:07Z","pushed_at":"2015-10-15T20:49:07Z","git_url":"git://github.com/alex85k/osm2pgsql.git","ssh_url":"git@github.com:alex85k/osm2pgsql.git","clone_url":"https://github.com/alex85k/osm2pgsql.git","svn_url":"https://github.com/alex85k/osm2pgsql","homepage":"http://wiki.openstreetmap.org/wiki/Osm2pgsql","size":33142,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"cmake"}},"base":{"label":"openstreetmap:master","ref":"master","sha":"89fe71c8d62d1c0923ce23e9b9ce2b14511747fb","user":{"login":"openstreetmap","id":261431,"avatar_url":"https://avatars.githubusercontent.com/u/261431?v=3","gravatar_id":"","url":"https://api.github.com/users/openstreetmap","html_url":"https://github.com/openstreetmap","followers_url":"https://api.github.com/users/openstreetmap/followers","following_url":"https://api.github.com/users/openstreetmap/following{/other_user}","gists_url":"https://api.github.com/users/openstreetmap/gists{/gist_id}","starred_url":"https://api.github.com/users/openstreetmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstreetmap/subscriptions","organizations_url":"https://api.github.com/users/openstreetmap/orgs","repos_url":"https://api.github.com/users/openstreetmap/repos","events_url":"https://api.github.com/users/openstreetmap/events{/privacy}","received_events_url":"https://api.github.com/users/openstreetmap/received_events","type":"Organization","site_admin":false},"repo":{"id":641729,"name":"osm2pgsql","full_name":"openstreetmap/osm2pgsql","owner":{"login":"openstreetmap","id":261431,"avatar_url":"https://avatars.githubusercontent.com/u/261431?v=3","gravatar_id":"","url":"https://api.github.com/users/openstreetmap","html_url":"https://github.com/openstreetmap","followers_url":"https://api.github.com/users/openstreetmap/followers","following_url":"https://api.github.com/users/openstreetmap/following{/other_user}","gists_url":"https://api.github.com/users/openstreetmap/gists{/gist_id}","starred_url":"https://api.github.com/users/openstreetmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstreetmap/subscriptions","organizations_url":"https://api.github.com/users/openstreetmap/orgs","repos_url":"https://api.github.com/users/openstreetmap/repos","events_url":"https://api.github.com/users/openstreetmap/events{/privacy}","received_events_url":"https://api.github.com/users/openstreetmap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openstreetmap/osm2pgsql","description":"OpenStreetMap data to PostgreSQL converter","fork":false,"url":"https://api.github.com/repos/openstreetmap/osm2pgsql","forks_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/forks","keys_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/teams","hooks_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/hooks","issue_events_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/issues/events{/number}","events_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/events","assignees_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/assignees{/user}","branches_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/branches{/branch}","tags_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/tags","blobs_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/git/refs{/sha}","trees_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/statuses/{sha}","languages_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/languages","stargazers_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/stargazers","contributors_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/contributors","subscribers_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/subscribers","subscription_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/subscription","commits_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/commits{/sha}","git_commits_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/git/commits{/sha}","comments_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/comments{/number}","issue_comment_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/issues/comments{/number}","contents_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/contents/{+path}","compare_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/merges","archive_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/downloads","issues_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/issues{/number}","pulls_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls{/number}","milestones_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/milestones{/number}","notifications_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/labels{/name}","releases_url":"https://api.github.com/repos/openstreetmap/osm2pgsql/releases{/id}","created_at":"2010-05-01T20:08:40Z","updated_at":"2015-10-16T07:27:03Z","pushed_at":"2015-10-15T21:03:08Z","git_url":"git://github.com/openstreetmap/osm2pgsql.git","ssh_url":"git@github.com:openstreetmap/osm2pgsql.git","clone_url":"https://github.com/openstreetmap/osm2pgsql.git","svn_url":"https://github.com/openstreetmap/osm2pgsql","homepage":"","size":35188,"stargazers_count":293,"watchers_count":293,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":151,"mirror_url":null,"open_issues_count":83,"forks":151,"open_issues":83,"watchers":293,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls/460"},"html":{"href":"https://github.com/openstreetmap/osm2pgsql/pull/460"},"issue":{"href":"https://api.github.com/repos/openstreetmap/osm2pgsql/issues/460"},"comments":{"href":"https://api.github.com/repos/openstreetmap/osm2pgsql/issues/460/comments"},"review_comments":{"href":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls/460/comments"},"review_comment":{"href":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openstreetmap/osm2pgsql/pulls/460/commits"},"statuses":{"href":"https://api.github.com/repos/openstreetmap/osm2pgsql/statuses/025b3cc2b83a2ba2ac838682553b89caa76b1d3a"}}}}