{"action":"created","issue":{"url":"https://api.github.com/repos/libgd/libgd/issues/81","labels_url":"https://api.github.com/repos/libgd/libgd/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/libgd/libgd/issues/81/comments","events_url":"https://api.github.com/repos/libgd/libgd/issues/81/events","html_url":"https://github.com/libgd/libgd/issues/81","id":56608227,"number":81,"title":"Trying to compile libgd 2.1.0 on Windows | Cmake Error","user":{"login":"imazen-bot","id":10421256,"avatar_url":"https://avatars.githubusercontent.com/u/10421256?v=3","gravatar_id":"","url":"https://api.github.com/users/imazen-bot","html_url":"https://github.com/imazen-bot","followers_url":"https://api.github.com/users/imazen-bot/followers","following_url":"https://api.github.com/users/imazen-bot/following{/other_user}","gists_url":"https://api.github.com/users/imazen-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/imazen-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imazen-bot/subscriptions","organizations_url":"https://api.github.com/users/imazen-bot/orgs","repos_url":"https://api.github.com/users/imazen-bot/repos","events_url":"https://api.github.com/users/imazen-bot/events{/privacy}","received_events_url":"https://api.github.com/users/imazen-bot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-05T00:09:26Z","updated_at":"2015-02-05T00:09:26Z","closed_at":null,"body":"Hello guys,\n\nI'm trying to compile libgd 2.1.0 but when i execute cmake with the following command :\n\n\n```\n#!console\n\nC:\\Users\\xxxx\\Desktop\\Compilation GD 2.1.0\\libgd-2.1.0>cmake -G\"MinGW Makefile\n\" -DCMAKE_LIBRARY_PATH=c:\\MinGW\\lib -DCMAKE_INCLUDE_PATH=c:\\MinGW\\include .\\src\n```\n\nI'm face this error :\n\n\n```\n#!console\n\nCMake Error at CMakeLists.txt:83 (target_link_libraries):\n  target_link_libraries called with incorrect number of arguments\n\n\nCMake Error at CMakeLists.txt:84 (target_link_libraries):\n  target_link_libraries called with incorrect number of arguments\n\n\nCMake Warning (dev) in CMakeLists.txt:\n  No cmake_minimum_required command is present.  A line of code such as\n\n    cmake_minimum_required(VERSION 2.8)\n\n  should be added at the top of the file.  The version specified may be lower\n  if you wish to support older CMake versions for this project.  For more\n  information run \"cmake --help-policy CMP0000\".\nThis warning is for project developers.  Use -Wno-dev to suppress it.\n\n-- Configuring incomplete, errors occurred!\n```\n\nNeed some help ...\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/libgd/gd-libgd/issue/81\n- Originally reported by: Anonymous\n- Originally created on: Jul 13 2013\n"},"comment":{"url":"https://api.github.com/repos/libgd/libgd/issues/comments/72968589","html_url":"https://github.com/libgd/libgd/issues/81#issuecomment-72968589","issue_url":"https://api.github.com/repos/libgd/libgd/issues/81","id":72968589,"user":{"login":"imazen-bot","id":10421256,"avatar_url":"https://avatars.githubusercontent.com/u/10421256?v=3","gravatar_id":"","url":"https://api.github.com/users/imazen-bot","html_url":"https://github.com/imazen-bot","followers_url":"https://api.github.com/users/imazen-bot/followers","following_url":"https://api.github.com/users/imazen-bot/following{/other_user}","gists_url":"https://api.github.com/users/imazen-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/imazen-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imazen-bot/subscriptions","organizations_url":"https://api.github.com/users/imazen-bot/orgs","repos_url":"https://api.github.com/users/imazen-bot/repos","events_url":"https://api.github.com/users/imazen-bot/events{/privacy}","received_events_url":"https://api.github.com/users/imazen-bot/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T00:09:26Z","updated_at":"2015-02-05T00:09:26Z","body":"fix #81, cmake_minimum_required must be the 1st line in 2.8+\n\n\n→ <<cset a0f58c6abf7b>>\n\n----------------------------------------\nOriginally posted by [pierrejoye (Pierre Joye)](http://bitbucket.org/pierrejoye) on [Jul 14 2013 via Bitbucket](https://bitbucket.org/libgd/gd-libgd/issue/81/comments/#comment-5186223)\n"}}