diff --git a/cython/eigency/CMakeLists.txt b/cython/eigency/CMakeLists.txt index fec9a4834..536a01626 100644 --- a/cython/eigency/CMakeLists.txt +++ b/cython/eigency/CMakeLists.txt @@ -14,3 +14,4 @@ cythonize(cythonize_eigency_conversions "${CMAKE_CURRENT_SOURCE_DIR}/conversions install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION ${GTSAM_CYTHON_INSTALL_PATH}) install(TARGETS cythonize_eigency_core cythonize_eigency_conversions DESTINATION ${GTSAM_CYTHON_INSTALL_PATH}/eigency) +configure_file(__init__.py.in ${GTSAM_CYTHON_INSTALL_PATH}/eigency/__init__.py) diff --git a/cython/eigency/__init__.py b/cython/eigency/__init__.py.in similarity index 85% rename from cython/eigency/__init__.py rename to cython/eigency/__init__.py.in index ae45d13d1..dd278d128 100644 --- a/cython/eigency/__init__.py +++ b/cython/eigency/__init__.py.in @@ -1,7 +1,7 @@ import os import numpy as np -__eigen_dir__ = "eigen_3.2.8" +__eigen_dir__ = "${GTSAM_EIGEN_INCLUDE_PREFIX}" def get_includes(include_eigen=True): root = os.path.dirname(__file__)