On 6 December 2012 13:39, Philipp Kraus <[email protected]> wrote:
> Hello,
>
> I'm new with Soci and try to build Soci with support for SQLite &
> Postgresql.
> On calling cmake I get the messages:
>
> WARNING: Target "soci_postgresql" requests linking to directory
> "/Users/postgresql/9.2.2/lib". Targets may link only to libraries. CMake
> is dropping the item.
> WARNING: Target "soci_sqlite3" requests linking to directory
> "/Users/sqlite/3.7.14.1/lib". Targets may link only to libraries. CMake
> is dropping the item.
>
> I push the pathes to the cmake flags
> -DSQLITE3_INCLUDE_DIR:String=/path_to_sqlite/include and
> -DSQLITE3_LIBRARY:String=/path_to_sqlite/lib (equal on Postgres)
> I think the library flag is wrong. Which item must be set to the library
> flag?
>
The doc [1] says XXX_LIBRARY option is used to set
"Full paths to libraries to link SOCI against"
It means libraries, not library directories
Perhaps the docs could be clearer, I admit.
So, you need to specify full path to library *file*:
-DXXX_LIBRARY:STRING=/path_to_sqlite/lib/xxx.lib
[1] http://soci.sourceforge.net/doc/installation.html
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users