Add some eigen corrections
This commit is contained in:
parent
5093212ec0
commit
897427436e
9
external/external_build.cmake
vendored
9
external/external_build.cmake
vendored
@ -341,7 +341,14 @@ IF (INTERNAL_EIGEN)
|
|||||||
SET(EIGEN3_INCLUDE_DIRS ${EXT_INSTALL}/include/eigen3)
|
SET(EIGEN3_INCLUDE_DIRS ${EXT_INSTALL}/include/eigen3)
|
||||||
|
|
||||||
ELSE (INTERNAL_EIGEN)
|
ELSE (INTERNAL_EIGEN)
|
||||||
pkg_check_modules(EIGEN3 eigen3 )
|
if(DEFINED EIGEN_PATH)
|
||||||
|
set(_eigen_old_pkg_path $ENV{PKG_CONFIG_PATH})
|
||||||
|
set(ENV{PKG_CONFIG_PATH} ${EIGEN_PATH}/share/pkgconfig)
|
||||||
|
endif()
|
||||||
|
pkg_check_modules(EIGEN3 NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH REQUIRED eigen3)
|
||||||
|
if(DEFINED EIGEN_PATH)
|
||||||
|
set(ENV{PKG_CONFIG_PATH} ${_eigen_old_pkg_path})
|
||||||
|
endif()
|
||||||
if (NOT EIGEN3_FOUND)
|
if (NOT EIGEN3_FOUND)
|
||||||
cmessage(CWARNING "Eigen library not found")
|
cmessage(CWARNING "Eigen library not found")
|
||||||
else()
|
else()
|
||||||
|
Loading…
Reference in New Issue
Block a user