These are chat archives for symengine/symengine

7th
Jun 2015
Sumith Kulal
@Sumith1896
Jun 07 2015 12:21
For FindBOOST.cmake, this seems to work, is this sufficient?
include(LibFindMacros)

libfind_include(boost boost)

set(BOOST_INCLUDE_DIRS ${BOOST_INCLUDE_DIR})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(BOOST DEFAULT_MSG
    BOOST_INCLUDE_DIRS)

mark_as_advanced(BOOST_INCLUDE_DIR)
Isuru Fernando
@isuruf
Jun 07 2015 12:26
Is boost a header only library?
Sumith Kulal
@Sumith1896
Jun 07 2015 12:29
there are some files of boost in /usr/lib/
@isuruf Check this out: http://pastebin.ubuntu.com/11625309/
Isuru Fernando
@isuruf
Jun 07 2015 13:07

Boost library is not one library, so you need to specify which one you need, also boost library names have the version number suffixes.

My suggestion is to use FindBoost.cmake from cmake and simulate our LibFindMacros
First search with Boost_NO_SYSTEM_PATHS set to yes and hints given to Boost_INCLUDE_DIRS
and then search again with Boost_NO_SYSTEM_PATHS set to no.

In your CMake installation, you should find a file called FindBoost.cmake. Usage is documented there. Also look at Piranha's CMakeLists.txt for the required boost library components.

@certik, thoughts?