forked from mindspore-Ecosystem/mindspore
19 lines
607 B
CMake
19 lines
607 B
CMake
set(Eigen3_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
|
set(Eigen3_CFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
|
|
|
|
|
set(REQ_URL "https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz")
|
|
set(MD5 "4c527a9171d71a72a9d4186e65bea559")
|
|
|
|
|
|
mindspore_add_pkg(Eigen3
|
|
VER 3.4.0
|
|
URL ${REQ_URL}
|
|
MD5 ${MD5}
|
|
CMAKE_OPTION -DBUILD_TESTING=OFF)
|
|
find_package(Eigen3 3.4.0 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)
|