{"action":"created","issue":{"url":"https://api.github.com/repos/miloyip/rapidjson/issues/319","labels_url":"https://api.github.com/repos/miloyip/rapidjson/issues/319/labels{/name}","comments_url":"https://api.github.com/repos/miloyip/rapidjson/issues/319/comments","events_url":"https://api.github.com/repos/miloyip/rapidjson/issues/319/events","html_url":"https://github.com/miloyip/rapidjson/issues/319","id":70951192,"number":319,"title":"CMAKE_BUILD_TYPE didn't set by default ","user":{"login":"Red-wolf-s-husband","id":4018764,"avatar_url":"https://avatars.githubusercontent.com/u/4018764?v=3","gravatar_id":"","url":"https://api.github.com/users/Red-wolf-s-husband","html_url":"https://github.com/Red-wolf-s-husband","followers_url":"https://api.github.com/users/Red-wolf-s-husband/followers","following_url":"https://api.github.com/users/Red-wolf-s-husband/following{/other_user}","gists_url":"https://api.github.com/users/Red-wolf-s-husband/gists{/gist_id}","starred_url":"https://api.github.com/users/Red-wolf-s-husband/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Red-wolf-s-husband/subscriptions","organizations_url":"https://api.github.com/users/Red-wolf-s-husband/orgs","repos_url":"https://api.github.com/users/Red-wolf-s-husband/repos","events_url":"https://api.github.com/users/Red-wolf-s-husband/events{/privacy}","received_events_url":"https://api.github.com/users/Red-wolf-s-husband/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/miloyip/rapidjson/labels/build","name":"build","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-25T18:38:31Z","updated_at":"2015-04-28T07:03:01Z","closed_at":null,"body":"```\r\ncmake ../ && cmake -L\r\nSpecify --help for usage, or press the help button on the CMake GUI.\r\n-- Cache values\r\nBUILD_TESTING:BOOL=ON\r\nCMAKE_BUILD_TYPE:STRING=\r\nCMAKE_INSTALL_DIR:PATH=/usr/local/lib/cmake/RapidJSON\r\nCMAKE_INSTALL_PREFIX:PATH=/usr/local\r\nDOC_INSTALL_DIR:PATH=/usr/local/share/doc/RapidJSON\r\nGTEST_INCLUDE_DIR:PATH=GTEST_INCLUDE_DIR-NOTFOUND\r\nGTEST_SOURCE_DIR:PATH=GTEST_SOURCE_DIR-NOTFOUND\r\nINCLUDE_INSTALL_DIR:PATH=/usr/local/include\r\nLIB_INSTALL_DIR:STRING=/usr/local/lib\r\nRAPIDJSON_BUILD_DOC:BOOL=ON\r\nRAPIDJSON_BUILD_EXAMPLES:BOOL=ON\r\nRAPIDJSON_BUILD_TESTS:BOOL=ON\r\nRAPIDJSON_BUILD_THIRDPARTY_GTEST:BOOL=OFF\r\nRAPIDJSON_HAS_STDSTRING:BOOL=OFF\r\n```\r\nBut this works fine:\r\n```\r\ncmake -DCMAKE_BUILD_TYPE=Debug ../ && cmake -L\r\n-- Cache values\r\nBUILD_TESTING:BOOL=ON\r\nCMAKE_BUILD_TYPE:STRING=Debug\r\nCMAKE_INSTALL_DIR:PATH=/usr/local/lib/cmake/RapidJSON\r\nCMAKE_INSTALL_PREFIX:PATH=/usr/local\r\n......\r\n```"},"comment":{"url":"https://api.github.com/repos/miloyip/rapidjson/issues/comments/96951346","html_url":"https://github.com/miloyip/rapidjson/issues/319#issuecomment-96951346","issue_url":"https://api.github.com/repos/miloyip/rapidjson/issues/319","id":96951346,"user":{"login":"jollyroger","id":96645,"avatar_url":"https://avatars.githubusercontent.com/u/96645?v=3","gravatar_id":"","url":"https://api.github.com/users/jollyroger","html_url":"https://github.com/jollyroger","followers_url":"https://api.github.com/users/jollyroger/followers","following_url":"https://api.github.com/users/jollyroger/following{/other_user}","gists_url":"https://api.github.com/users/jollyroger/gists{/gist_id}","starred_url":"https://api.github.com/users/jollyroger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jollyroger/subscriptions","organizations_url":"https://api.github.com/users/jollyroger/orgs","repos_url":"https://api.github.com/users/jollyroger/repos","events_url":"https://api.github.com/users/jollyroger/events{/privacy}","received_events_url":"https://api.github.com/users/jollyroger/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T07:03:01Z","updated_at":"2015-04-28T07:03:01Z","body":"according to this thread\nhttp://www.cmake.org/pipermail/cmake/2009-June/030311.html, setting\nCMAKE_BUILD_TYPE is just not enough. In the latter messages the proposed\nway to set default build type is:\n\n    if(NOT CMAKE_BUILD_TYPE)\n      set(CMAKE_BUILD_TYPE \"Release\" CACHE STRING\n          \"Choose the type of build, options are: Debug Release\nRelWithDebInfo MinSizeRel.\" FORCE)\n    endif(NOT CMAKE_BUILD_TYPE)\n\nNote that in this case using FORCE is mandatory.\n\n\n2015-04-28 6:05 GMT+03:00 Milo Yip <notifications@github.com>:\n\n> @jollyroger <https://github.com/jollyroger>, what you do think?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/miloyip/rapidjson/issues/319#issuecomment-96893792>.\n>\n\n\n\n-- \nWBR, Andrii Senkovych\n"}}