On 6 December 2012 19:00, Philipp Kraus <[email protected]> wrote: > Hello, > > I try to build Soci with Boost date time, the cmake shows > > -- Boost: > -- Boost_RELEASE_VERSION = 1.52.0 > -- Boost_INCLUDE_DIR = /boost/1.52.0/include > -- Boost_LIBRARIES = > > I have add to the cmake call -DWITH_BOOST:BOOL="1" > -DBoost_INCLUDE_DIR:PATH=/boost/1.52.0/include > -DBoost_DATE_TIME_LIBRARY_DEBUG:FILEPATH=/boost/1.52.0/lib/libboost_date_time.dylib > > WHich flags are needed to use the boost date time in a correct way?
You do not need to specify Boost libraries by hand. If Boost is found and if Boost binary libraries are found, CMake will pick them up automatically as WITH_BOOST=ON is set by default. (Certainly, you can disable Boost support by specifying -DWITH_BOOST=OFF) This strategy works well for me on Linux: $ cmake -DWITH_BOOST=ON ../soci/src ... -- Boost_RELEASE_VERSION = 1.50.0 -- Boost_INCLUDE_DIR = /usr/include -- Boost_LIBRARIES = /usr/lib/libboost_date_time.a ... 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
