{"action":"opened","issue":{"url":"https://api.github.com/repos/google/flatui/issues/10","repository_url":"https://api.github.com/repos/google/flatui","labels_url":"https://api.github.com/repos/google/flatui/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/google/flatui/issues/10/comments","events_url":"https://api.github.com/repos/google/flatui/issues/10/events","html_url":"https://github.com/google/flatui/issues/10","id":185834811,"number":10,"title":"SDL in-tree build error in Windows","user":{"login":"nonew","id":6738220,"avatar_url":"https://avatars.githubusercontent.com/u/6738220?v=3","gravatar_id":"","url":"https://api.github.com/users/nonew","html_url":"https://github.com/nonew","followers_url":"https://api.github.com/users/nonew/followers","following_url":"https://api.github.com/users/nonew/following{/other_user}","gists_url":"https://api.github.com/users/nonew/gists{/gist_id}","starred_url":"https://api.github.com/users/nonew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nonew/subscriptions","organizations_url":"https://api.github.com/users/nonew/orgs","repos_url":"https://api.github.com/users/nonew/repos","events_url":"https://api.github.com/users/nonew/events{/privacy}","received_events_url":"https://api.github.com/users/nonew/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-28T04:11:17Z","updated_at":"2016-10-28T04:11:17Z","closed_at":null,"body":"Hello, Sir\r\nI met a build issue when use CMake(version 3.6.2) in Windows, (same result for CMake CMakeLists.txt  command)\r\n\r\nD:\\work\\flatui>cmake -G \"Visual Studio 14 2015\"\r\n-- FlatUI standalone: building tests and sample\r\n-- FPLBase library: not building samples\r\nCMake Error at dependencies/sdl/CMakeLists.txt:2 (message):\r\n  Prevented in-tree built.  Please create a build directory outside of the\r\n  SDL source code and call cmake from there\r\n\r\n\r\n-- Configuring incomplete, errors occurred!\r\nSee also \"D:/work/flatui/CMakeFiles/CMakeOutput.log\".\r\n\r\nSeems that it is a bug in SDL CMakeLists.txt that prevents SDL from being built out-of-tree if the calling project is being built in-tree.\r\nHere is script in SDL CMakeLists.txt\r\nif(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})\r\n  message(FATAL_ERROR \"Prevented in-tree built. Please create a build directory outside of the SDL source code and call cmake from there\")\r\nendif()\r\n\r\n\r\nDo you guys know how to fix it?\r\n\r\nBR, nonew"}}
{"actor":{"display_login":"nonew"}}