diff options
author | Lukas Bulwahn <lukas.bulwahn@oss.bmw-carit.de> | 2013-10-01 07:44:12 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-10-05 12:36:25 +0200 |
commit | 424e3c1b930c0103c2cedfd4df1671e84a5256d5 (patch) | |
tree | 3c2c65991c4f4f14c43dddc3530430c8dc86a2a0 /meta-oe/recipes-support/libeigen/libeigen | |
parent | b3bcdd59e20163cc03b4bf814a84b798d0be9b96 (diff) | |
download | meta-openembedded-contrib-424e3c1b930c0103c2cedfd4df1671e84a5256d5.tar.gz |
libeigen: initial contribution required by opencv
As opencv depends on libeigen, libeigen is added to the meta-oe
layer. This commit is derived from the work [1] by Kartik Mohta.
[1] https://github.com/kartikmohta/meta-km/tree/master/recipes-extended/eigen
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@oss.bmw-carit.de>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/libeigen/libeigen')
-rw-r--r-- | meta-oe/recipes-support/libeigen/libeigen/eigen-disable-tests.patch | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/libeigen/libeigen/eigen-disable-tests.patch b/meta-oe/recipes-support/libeigen/libeigen/eigen-disable-tests.patch new file mode 100644 index 0000000000..b3dddbeaf8 --- /dev/null +++ b/meta-oe/recipes-support/libeigen/libeigen/eigen-disable-tests.patch @@ -0,0 +1,75 @@ +libeigen: don't try building tests + +While configuring, if the tests are enabled, it checks some machine-specific +settings which we don't want to do while cross-compiling. + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Lukas Bulwahn <lukas.bulwahn@oss.bmw-carit.de> + +--- a/CMakeLists.txt~ 2013-07-29 16:59:48.403504947 -0400 ++++ b/CMakeLists.txt 2013-07-29 17:00:19.868020948 -0400 +@@ -346,25 +346,25 @@ + + add_subdirectory(doc EXCLUDE_FROM_ALL) + +-include(EigenConfigureTesting) ++#include(EigenConfigureTesting) + + # fixme, not sure this line is still needed: +-enable_testing() # must be called from the root CMakeLists, see man page ++#enable_testing() # must be called from the root CMakeLists, see man page + + +-if(EIGEN_LEAVE_TEST_IN_ALL_TARGET) +- add_subdirectory(test) # can't do EXCLUDE_FROM_ALL here, breaks CTest +-else() +- add_subdirectory(test EXCLUDE_FROM_ALL) +-endif() ++#if(EIGEN_LEAVE_TEST_IN_ALL_TARGET) ++# add_subdirectory(test) # can't do EXCLUDE_FROM_ALL here, breaks CTest ++#else() ++# add_subdirectory(test EXCLUDE_FROM_ALL) ++#endif() + +-if(EIGEN_LEAVE_TEST_IN_ALL_TARGET) +- add_subdirectory(blas) +- add_subdirectory(lapack) +-else() +- add_subdirectory(blas EXCLUDE_FROM_ALL) +- add_subdirectory(lapack EXCLUDE_FROM_ALL) +-endif() ++#if(EIGEN_LEAVE_TEST_IN_ALL_TARGET) ++# add_subdirectory(blas) ++# add_subdirectory(lapack) ++#else() ++# add_subdirectory(blas EXCLUDE_FROM_ALL) ++# add_subdirectory(lapack EXCLUDE_FROM_ALL) ++#endif() + + add_subdirectory(unsupported) + +@@ -384,7 +384,7 @@ + + configure_file(scripts/cdashtesting.cmake.in cdashtesting.cmake @ONLY) + +-ei_testing_print_summary() ++#ei_testing_print_summary() + + message(STATUS "") + message(STATUS "Configured Eigen ${EIGEN_VERSION_NUMBER}") +--- a/unsupported/CMakeLists.txt~ 2013-07-29 16:59:54.091598607 -0400 ++++ b/unsupported/CMakeLists.txt 2013-07-29 17:00:27.052139300 -0400 +@@ -1,7 +1,7 @@ + add_subdirectory(Eigen) + add_subdirectory(doc EXCLUDE_FROM_ALL) +-if(EIGEN_LEAVE_TEST_IN_ALL_TARGET) +- add_subdirectory(test) # can't do EXCLUDE_FROM_ALL here, breaks CTest +-else() +- add_subdirectory(test EXCLUDE_FROM_ALL) +-endif() ++#if(EIGEN_LEAVE_TEST_IN_ALL_TARGET) ++# add_subdirectory(test) # can't do EXCLUDE_FROM_ALL here, breaks CTest ++#else() ++# add_subdirectory(test EXCLUDE_FROM_ALL) ++#endif() |