On Thu, Mar 14, 2013 at 11:21:55AM +0100, Lars Vingli Odsæter wrote:
> Hi,
> 
> I was currently testing this. I have problems linking boost. On my
> workstation there are two boost versions: one old (1.33.1) located
> at /usr/include and one newer (1.45.0) located at
> /project/res/x86_64_RH5/share/opm/boost. I have tried different
> flags to link the correct boost library:
> 
> 1)
> CMAKE_FLAGS="-DBOOST_ROOT=/project/res/x86_64_RH5/share/opm/boost
> -DSUPERLU_ROOT=/project/res/x86_64_RH5/share/opm/SuperLU_4.0 "
>
> [...] 
> 
> -- Finding package Boost using module mode
> CMake Error at 
> /project/res/x86_64_RH_5/share/cmake-2.8/Modules/FindBoost.cmake:1199 
> (message):
>   Unable to find the requested Boost libraries.
> 
>   Boost version: 1.33.1
> 
>   Boost include path: /usr/include
> 
>   Detected version of Boost is too old.  Requested version was 1.39 (or
>   newer).
> 
>   The following Boost libraries could not be found:
> 
>           boost_date_time
>           boost_filesystem
>           boost_unit_test_framework
> 
>   No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
>   directory containing Boost libraries or BOOST_ROOT to the location of
>   Boost.

Quoting from the documentation:

"To prevent falling back on the system paths, set
Boost_NO_SYSTEM_PATHS to true."

i.e. -DBoost_NO_SYSTEM_PATHS=True

will disable search in usr and might thus help.

Markus


_______________________________________________
Opm mailing list
[email protected]
http://www.opm-project.org/mailman/listinfo/opm

Reply via email to