mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-23 14:53:13 +08:00
Explain how to choose your favorite Eigen version
This commit is contained in:
parent
e049a2a72a
commit
0c4d05b009
@ -32,6 +32,11 @@ which requires at least version 3.3 of %Eigen. Here, `path-to-example-directory`
|
|||||||
is the path to the directory that contains both `CMakeLists.txt` and
|
is the path to the directory that contains both `CMakeLists.txt` and
|
||||||
`example.cpp`.
|
`example.cpp`.
|
||||||
|
|
||||||
|
If you have multiple installed version of %Eigen, you can pick your favorite one by setting the \c Eigen3_DIR cmake's variable to the respective path containing the \c Eigen3*.cmake files. For instance:
|
||||||
|
\code
|
||||||
|
cmake path-to-example-directory -DEigen3_DIR=$HOME/mypackages/share/eigen3/cmake/
|
||||||
|
\endcode
|
||||||
|
|
||||||
If the `REQUIRED` option is omitted when locating %Eigen using
|
If the `REQUIRED` option is omitted when locating %Eigen using
|
||||||
`find_package`, one can check whether the package was found as follows:
|
`find_package`, one can check whether the package was found as follows:
|
||||||
\code{.cmake}
|
\code{.cmake}
|
||||||
@ -45,5 +50,3 @@ endif (TARGET Eigen3::Eigen)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// vim: set ft=cpp.doxygen
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user