forked from mindspore-Ecosystem/mindspore
13 lines
559 B
CMake
13 lines
559 B
CMake
|
set(Eigen3_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||
|
set(Eigen3_CFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||
|
mindspore_add_pkg(Eigen3
|
||
|
VER 3.3.7
|
||
|
URL https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.tar.gz
|
||
|
MD5 9e30f67e8531477de4117506fe44669b
|
||
|
CMAKE_OPTION -DBUILD_TESTING=OFF)
|
||
|
find_package(Eigen3 3.3.7 REQUIRED ${MS_FIND_NO_DEFAULT_PATH})
|
||
|
include_directories(${Eigen3_INC})
|
||
|
include_directories(${EIGEN3_INCLUDE_DIR})
|
||
|
set_property(TARGET Eigen3::Eigen PROPERTY IMPORTED_GLOBAL TRUE)
|
||
|
add_library(mindspore::eigen ALIAS Eigen3::Eigen)
|