{"action":"created","issue":{"url":"https://api.github.com/repos/simongog/sdsl-lite/issues/292","labels_url":"https://api.github.com/repos/simongog/sdsl-lite/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/simongog/sdsl-lite/issues/292/comments","events_url":"https://api.github.com/repos/simongog/sdsl-lite/issues/292/events","html_url":"https://github.com/simongog/sdsl-lite/issues/292","id":117495068,"number":292,"title":"mode TI detection fails if sdsl-lite included as submodule in project","user":{"login":"mpetri","id":291755,"avatar_url":"https://avatars.githubusercontent.com/u/291755?v=3","gravatar_id":"","url":"https://api.github.com/users/mpetri","html_url":"https://github.com/mpetri","followers_url":"https://api.github.com/users/mpetri/followers","following_url":"https://api.github.com/users/mpetri/following{/other_user}","gists_url":"https://api.github.com/users/mpetri/gists{/gist_id}","starred_url":"https://api.github.com/users/mpetri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpetri/subscriptions","organizations_url":"https://api.github.com/users/mpetri/orgs","repos_url":"https://api.github.com/users/mpetri/repos","events_url":"https://api.github.com/users/mpetri/events{/privacy}","received_events_url":"https://api.github.com/users/mpetri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-18T02:10:02Z","updated_at":"2015-11-21T17:34:58Z","closed_at":null,"body":"The mode TI detection introduced by #286 fails if sdsl lite is included as a submodule / add_subdirectory in a parent project.\r\n\r\nI think the solution is to change the line from:\r\n\r\n```\r\ntry_compile(MODE_TI \"${PROJECT_BINARY_DIR}\" \"${CMAKE_SOURCE_DIR}/CMakeModules/check_mode_ti.cpp\")\r\n```\r\n\r\nto\r\n\r\n```\r\ntry_compile(MODE_TI \"${PROJECT_BINARY_DIR}\" \"${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/check_mode_ti.cpp\")\r\n```\r\n\r\ndoes this make sense @thinred ?\r\n"},"comment":{"url":"https://api.github.com/repos/simongog/sdsl-lite/issues/comments/158663858","html_url":"https://github.com/simongog/sdsl-lite/issues/292#issuecomment-158663858","issue_url":"https://api.github.com/repos/simongog/sdsl-lite/issues/292","id":158663858,"user":{"login":"thinred","id":502560,"avatar_url":"https://avatars.githubusercontent.com/u/502560?v=3","gravatar_id":"","url":"https://api.github.com/users/thinred","html_url":"https://github.com/thinred","followers_url":"https://api.github.com/users/thinred/followers","following_url":"https://api.github.com/users/thinred/following{/other_user}","gists_url":"https://api.github.com/users/thinred/gists{/gist_id}","starred_url":"https://api.github.com/users/thinred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinred/subscriptions","organizations_url":"https://api.github.com/users/thinred/orgs","repos_url":"https://api.github.com/users/thinred/repos","events_url":"https://api.github.com/users/thinred/events{/privacy}","received_events_url":"https://api.github.com/users/thinred/received_events","type":"User","site_admin":false},"created_at":"2015-11-21T17:34:58Z","updated_at":"2015-11-21T17:34:58Z","body":"I think it does, although I haven't tested it. :)"}}