{"action":"created","issue":{"url":"https://api.github.com/repos/rbock/sqlpp11/issues/137","repository_url":"https://api.github.com/repos/rbock/sqlpp11","labels_url":"https://api.github.com/repos/rbock/sqlpp11/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/rbock/sqlpp11/issues/137/comments","events_url":"https://api.github.com/repos/rbock/sqlpp11/issues/137/events","html_url":"https://github.com/rbock/sqlpp11/issues/137","id":204228370,"node_id":"MDU6SXNzdWUyMDQyMjgzNzA=","number":137,"title":"Unable to compile (with HinnantDate) in CMake","user":{"login":"biot023","id":193397,"node_id":"MDQ6VXNlcjE5MzM5Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/193397?v=4","gravatar_id":"","url":"https://api.github.com/users/biot023","html_url":"https://github.com/biot023","followers_url":"https://api.github.com/users/biot023/followers","following_url":"https://api.github.com/users/biot023/following{/other_user}","gists_url":"https://api.github.com/users/biot023/gists{/gist_id}","starred_url":"https://api.github.com/users/biot023/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biot023/subscriptions","organizations_url":"https://api.github.com/users/biot023/orgs","repos_url":"https://api.github.com/users/biot023/repos","events_url":"https://api.github.com/users/biot023/events{/privacy}","received_events_url":"https://api.github.com/users/biot023/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-01-31T08:10:25Z","updated_at":"2018-07-25T05:01:03Z","closed_at":null,"author_association":"NONE","body":"Hi -- I'm trying to install sqlpp11 into my project as a submodule, and have added HinnantDate/date, sqlpp11, and sqlpp11-connector-postgresql as git submodules. I've added them to a vendor/ subdirectory of the main source directory.\r\nI've added them to my CMakeFiles.txt file like this:\r\n\r\n    set(VENDOR_DIR ${CMAKE_SOURCE_DIR}/vendor)\r\n    set(Sqlpp11_DIR ${VENDOR_DIR}/sqlpp11/cmake)\r\n    add_subdirectory(vendor/sqlpp11)\r\n    add_subdirectory(vendor/sqlpp11-connector-postgresql)\r\n\r\nHowever, when I try to run `cmake ..` (from a build subdirectory), I get the following error:\r\n\r\n> CMake Error at /usr/local/share/cmake-3.7/Modules/CMakeFindDependencyMacro.cmake:55 (find_package):\r\n>   By not providing \"FindHinnantDate.cmake\" in CMAKE_MODULE_PATH this project\r\n>   has asked CMake to find a package configuration file provided by\r\n>   \"HinnantDate\", but CMake did not find one.\r\n> \r\n>   Could not find a package configuration file provided by \"HinnantDate\" with\r\n>   any of the following names:\r\n> \r\n>     HinnantDateConfig.cmake\r\n>     hinnantdate-config.cmake\r\n> \r\n>   Add the installation prefix of \"HinnantDate\" to CMAKE_PREFIX_PATH or set\r\n>   \"HinnantDate_DIR\" to a directory containing one of the above files.  If\r\n>   \"HinnantDate\" provides a separate development package or SDK, be sure it\r\n>   has been installed.\r\n> Call Stack (most recent call first):\r\n>   vendor/sqlpp11/cmake/Sqlpp11Config.cmake:29 (find_dependency)\r\n>   vendor/sqlpp11-connector-postgresql/CMakeLists.txt:32 (find_package)\r\n> \r\n> \r\n> -- Configuring incomplete, errors occurred!\r\n\r\nThis all works when I install HinnantDate, sqlpp11, etc. to my system, but I want to have them install as submodules of my project to avoid polluting where it runs with lots of requirements.\r\nCould anyone advise me on how to go about this?\r\nThanks,\r\n   Doug."},"comment":{"url":"https://api.github.com/repos/rbock/sqlpp11/issues/comments/407633885","html_url":"https://github.com/rbock/sqlpp11/issues/137#issuecomment-407633885","issue_url":"https://api.github.com/repos/rbock/sqlpp11/issues/137","id":407633885,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzYzMzg4NQ==","user":{"login":"rahul-agrawal21","id":32993737,"node_id":"MDQ6VXNlcjMyOTkzNzM3","avatar_url":"https://avatars3.githubusercontent.com/u/32993737?v=4","gravatar_id":"","url":"https://api.github.com/users/rahul-agrawal21","html_url":"https://github.com/rahul-agrawal21","followers_url":"https://api.github.com/users/rahul-agrawal21/followers","following_url":"https://api.github.com/users/rahul-agrawal21/following{/other_user}","gists_url":"https://api.github.com/users/rahul-agrawal21/gists{/gist_id}","starred_url":"https://api.github.com/users/rahul-agrawal21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahul-agrawal21/subscriptions","organizations_url":"https://api.github.com/users/rahul-agrawal21/orgs","repos_url":"https://api.github.com/users/rahul-agrawal21/repos","events_url":"https://api.github.com/users/rahul-agrawal21/events{/privacy}","received_events_url":"https://api.github.com/users/rahul-agrawal21/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T05:01:03Z","updated_at":"2018-07-25T05:01:03Z","author_association":"NONE","body":"Hi Roland,\r\nI followed the steps that worked for you, however I still get the errors mentioned in the very first comment. "}}
{"actor":{"display_login":"rahul-agrawal21"}}