Make CMake config file relocatable

(grafted from 18481b518f
)
This commit is contained in:
Silvio Traversaro
2016-12-05 10:39:52 +01:00
parent bbff608a42
commit 0164f4c682
2 changed files with 4 additions and 3 deletions

View File

@@ -531,6 +531,7 @@ if (NOT CMAKE_VERSION VERSION_LESS 3.0)
configure_package_config_file (
${CMAKE_CURRENT_SOURCE_DIR}/cmake/Eigen3Config.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/Eigen3Config.cmake
PATH_VARS EIGEN_INCLUDE_DIR EIGEN_ROOT_DIR
INSTALL_DESTINATION ${CMAKEPACKAGE_INSTALL_DIR}
NO_CHECK_REQUIRED_COMPONENTS_MACRO # Eigen does not provide components
)