The file cmake/ChronoConfig.cmake.in contains numerous hard-coded absolute paths. For example:
|
set(Eigen3_DIR "@Eigen3_DIR@" CACHE PATH "Path to Eigen3 config file (should contain the \"Eigen3Config.cmake\" file") |
I don’t think this is a good approach, because when I transfer the library to another computer, the paths are usually incorrect. After the build, ChronoConfig.cmake then contains, for example:
set(Eigen3_DIR "E:/workspace/ProjectChrono/deps/Eigen/share/eigen3/cmake" CACHE PATH "Path to Eigen3 config file (should contain the \"Eigen3Config.cmake\" file")
This applies not only to Eigen3 but also to the other dependencies.
The file
cmake/ChronoConfig.cmake.incontains numerous hard-coded absolute paths. For example:chrono/cmake/ChronoConfig.cmake.in
Line 271 in d6270e5
I don’t think this is a good approach, because when I transfer the library to another computer, the paths are usually incorrect. After the build, ChronoConfig.cmake then contains, for example:
This applies not only to Eigen3 but also to the other dependencies.