* Update to version 3.3.9. * Drop Remove-error-counting-in-OpenMP-parallelize_gemm.patch: incorporated upstream. * Add patches to fix building and running tests. * Setup but don't run tests due to random errors in test-suite itself. * Pass CMAKE_SKIP_RPATH:BOOL=OFF and CMAKE_SKIP_INSTALL_RPATH:BOOL=ON to cmake to fix rpath handling in Leap 15.2's cmake macros (doesn't hurt generally). * Change CMAKE_BUILD_TYPE from Release to RelWithDebInfo (openSUSE default). OBS-URL: https://build.opensuse.org/request/show/856739 OBS-URL: https://build.opensuse.org/package/show/science/eigen3?expand=0&rev=37
14 lines
819 B
Diff
14 lines
819 B
Diff
Index: eigen-3.3.8/cmake/FindGoogleHash.cmake
|
|
===================================================================
|
|
--- eigen-3.3.8.orig/cmake/FindGoogleHash.cmake
|
|
+++ eigen-3.3.8/cmake/FindGoogleHash.cmake
|
|
@@ -12,6 +12,8 @@ find_path(GOOGLEHASH_INCLUDES
|
|
|
|
if(GOOGLEHASH_INCLUDES)
|
|
# let's make sure it compiles with the current compiler
|
|
+ # C++11 is needed for googlehash
|
|
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
file(WRITE ${CMAKE_BINARY_DIR}/googlehash_test.cpp
|
|
"#include <google/sparse_hash_map>\n#include <google/dense_hash_map>\nint main(int argc, char** argv) { google::dense_hash_map<int,float> a; google::sparse_hash_map<int,float> b; return 0;}\n")
|
|
try_compile(GOOGLEHASH_COMPILE ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/googlehash_test.cpp OUTPUT_VARIABLE GOOGLEHASH_COMPILE_RESULT)
|