On 11/15/13 03:21, Roland Bock wrote:
On 2013-11-14 22:14, Larry Evans wrote: [snip]
I've tried to get cmake to work; however, it only works for the: sqlpp11 directory, but fails for the: sqlpp11-connector-sqlite3 directory.
I've attached the Makefile, and the output from `make targets_dir`. That target 1st clones sqlpp11, runs cmake in that directory, the make installs in that directory. Everything works find. However, with the sqlpp11-connector-sqlite3, the clone works, the cmake works; however, make gives a compilation error:
/home/evansl/prog_dev/boost/git/sqlpp11/sqlpp11-connector-sqlite3/src/connection.cpp:29:31: fatal error: sqlpp11/exception.h: No such file or directory #include
caused by *not* including:
-I/home/evansl/prog_dev/boost/git/sqlpp11/sqlpp11/include
on the compiler command line.
Is there something else I'm doing wrong?
-regards, Larry
Hi Larry,
First of all, thank you for your patience! You're welcome. Thanks for the work on this library!
As far as I can tell the problem results from your install directory not being in the standard include path.
I suspected something like that.
I have updated the CMakeLists file in the sqlpp11-connector-sqlite3 repository to default to
../sqlpp11/include (as suggested by you a few mail earlier)
This should work with your setup. I tested with your Makefile, just to be sure :-)
I tried it and it now works with the sqlite; however, I noticed that: https://github.com/rbock/sqlpp11-connector-mysql/blob/master/CMakeLists.txt doesn't have the same change. Wouldn't that same change be needed there too? -regards, Larry