On 11 July 2013 14:56, Philipp Kraus <[email protected]> wrote:
> Am 11.07.2013 um 10:34 schrieb Mateusz Loskot:
> On 11 July 2013 07:36, Philipp Kraus <[email protected]> wrote:
>
>
> Soci Cmake shows with the BOOST_ROOT option:
>
> -- Boost:
>
> -- Boost_RELEASE_VERSION                    = 1.54.0
>
> -- Boost_INCLUDE_DIR                        =
> /Developer/opt//boost/1.54.0/include
>
> -- Boost_LIBRARIES                          =
>
>
> This looks OK.
>
> -- SOCI_CORE_DEPENDENCIES                   = /usr/lib/libdl.dylib
> /usr/local/lib/libboost_date_time-mt.a
>
>
> This does not looks OK.
> FindBoost.cmake variable ${Boost_DATE_TIME_LIBRARY}
> is set to /usr/local/lib/libboost_date_time-mt.a for some reason.
>
> You are still testing with SOCI CMake configuration.
> I'd suggest, as in previous post, to test minimal CMake
> and figure out if you are still getting
> Boost_DATE_TIME_LIBRARY=/usr/local/lib/libboost_date_time-mt.a
>
>
> The Boost_DATE_TIME_LIBRARY:FILEPATH cmd options does not seem to work.
> If I change the parameter to Boost_DATE_TIME_LIBRARY_RELEASE and set the
> full path to the boost lib (like my postgresql flag)
> it seems to be working

You do not set this variable explicitly.
In CMakeLists.txt, you call find_package with COMPONENTS list,
as documented here
http://cmake.org/cmake/help/v2.8.11/cmake.html#module:FindBoost

> It is a little bit hard to understand the cmake data, because there does not
> exist any documentation.

It's all documented in FindBoost.cmake file (scan your CMake installation,
read the comments in header) and CMake documentation.

If I used OSX, I could test the minimal CMakeLists.txt sample I suggested,
but I don't, so you need to test it yourself.

Best regards,
--
Mateusz  Loskot, http://mateusz.loskot.net

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to