On 11 July 2013 18:25, Philipp Kraus <[email protected]> wrote:
>
> If I set the Boost_Root

This is incorrect spelling and I'm sure CMake would warn you about it.
There are only two accepted spellings of boost root/installation prefix,
BOOST_ROOT or BOOSTROOT, as it the documentation specifies
http://cmake.org/cmake/help/v2.8.11/cmake.html#module:FindBoost


>  and Boost_NO_SYSTEM_PATHS the libs are be build, but
> the SOCI_CORE_DEPENDENCIES                   = /usr/lib/libdl.dylib
> does not have any information to boost date-time anymore.

I have an impression there is misunderstanding.
Please, forget SOCI, for a moment and run this simple test

1. Create folder btest
2. Create file btest/CMakeLists.txt
3. Save this as content of btest/CMakeLists.txt

make_minimum_required (VERSION 2.8)
project(btest)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
find_package(Boost 1.53 COMPONENTS date_time) # change version as you wish
message(STATUS "Boost_FOUND=${Boost_FOUND}")
message(STATUS "Boost_INCLUDE_DIRS=${Boost_INCLUDE_DIRS}")
message(STATUS "Boost_DATE_TIME_LIBRARY=${Boost_DATE_TIME_LIBRARY}")

4. mkdir btest/build
5. cd btest/build
6. cmake -DBOOST_ROOT= /Developer/opt/Boost/1.54 ..
7. Verify the output and libraries location is as you expect.

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