These are chat archives for symengine/symengine

14th
Feb 2018
Björn Dahlgren
@bjodah
Feb 14 2018 20:30
A cmake related question: FindBoost.cmake allows the user to set an environment variable (BOOST_ROOT) for distinguishing between multiple versions of boost. Is there something similar for SymEngine? (right now I have set CMAKE_PREFIX_PATH to point to the folder with a particular build of SymEngine when building a project using SymEngine as a dependency)
Isuru Fernando
@isuruf
Feb 14 2018 20:32
I think it was -D<PROJECT>_DIR for config files
where <PROJECT> is SymEngine
Isuru Fernando
@isuruf
Feb 14 2018 20:37
yes, see https://cmake.org/cmake/help/v3.0/command/find_package.html and search for <package>_DIR
To avoid setting SymEngine_DIR to where the cmake file is and just to the root, here is what I do, https://github.com/symengine/symengine.py/blob/master/CMakeLists.txt#L5-L6
Björn Dahlgren
@bjodah
Feb 14 2018 21:24
great, thanks!