Am 10.07.2013 um 20:56 schrieb Mateusz Loskot:
> On 10 July 2013 16:27, Philipp Kraus <[email protected]> wrote:
>> Hello,
>>
>> I build soci under OSX and get the item
>>
>> SOCI_CORE_DEPENDENCIES = /usr/lib/libdl.dylib
>> /usr/local/lib/libboost_date_time-mt.a
>>
>> but I have set the items
>>
>> -DBoost_INCLUDE_DIR:PATH=/Developer/opt/Boost/1.54/include
>> -DBoost_LIBRARIES:FILEPATH=/Developer/opt/Boost/1.54/lib
>>
>> to an absolut path of my Boost installation eg /Developer/opt/Boost/1.54
>> In this case the core dependencies must be also point ti /Developer and not
>> /usr/local.
>>
>> How can I fix the core dependency for the Boost.Date-Time ?
>
> I don't use OSX myself, so I can't test it myself.
> First, I'd suggest to confirm that the Boost lookup works,
> using minimal example with CMake searching for Boost:
>
> $ cat CMakeLists.txt
> make_minimum_required (VERSION 2.8)
> project(boost_test)
> find_package(Boost 1.53) # change version, add COMPONENTS if desired
> if (NOT Boost_FOUND)
> message(FATAL_ERROR "Cannot find Boost")
> else()
> message(STATUS "Boost found")
> message(STATUS "Boost_INCLUDE_DIRS=${Boost_INCLUDE_DIRS}")
> endif()
>
> IMHO, BOOST_ROOT should be enough:
>
> cmake -DBOOST_ROOT:PATH=/Developer/opt/Boost/1.54
>
> Does it work for you?
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 =
-- SOCI_CORE_DEPENDENCIES = /usr/lib/libdl.dylib
/usr/local/lib/libboost_date_time-mt.a
I have disabled alls other boost flags.
Is there also a POSTGRESQL_ROOT? Exists there a documentation for the cmake
flags?
Thanks
Phil
------------------------------------------------------------------------------
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