avogadro-1.1.1-eigen3.patch 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --- avogadro-1.1.1/CMakeLists.txt.omv~ 2014-01-30 13:58:22.999443609 +0100
  2. +++ avogadro-1.1.1/CMakeLists.txt 2014-01-30 13:59:31.086106925 +0100
  3. @@ -230,13 +230,15 @@ if(NOT Linguist_FOUND)
  4. message(WARNING " Qt4 Linguist not found, please install it if you want Avogadro translations")
  5. endif()
  6. -find_package(Eigen3) # find and setup Eigen3 if available
  7. +find_package(Eigen3 REQUIRED) # find and setup Eigen3 if available
  8. if(NOT EIGEN3_FOUND)
  9. message(STATUS "Cannot find Eigen3, trying Eigen2")
  10. - find_package(Eigen2 REQUIRED) # Some version is required
  11. + find_package(Eigen2) # Some version is required
  12. else()
  13. # Use Stage10 Eigen3 support
  14. set (EIGEN2_SUPPORT_STAGE10_FULL_EIGEN2_API TRUE)
  15. + add_definitions (-DEIGEN2_SUPPORT_STAGE10_FULL_EIGEN2_API)
  16. + set (EIGEN2_INCLUDE_DIR ${EIGEN3_INCLUDE_DIR})
  17. endif()
  18. find_package(ZLIB REQUIRED)
  19. --- avogadro-1.1.1/libavogadro/src/extensions/qtaim/CMakeLists.txt.omv~ 2014-01-30 14:12:33.859401753 +0100
  20. +++ avogadro-1.1.1/libavogadro/src/extensions/qtaim/CMakeLists.txt 2014-01-30 14:15:07.652727522 +0100
  21. @@ -4,6 +4,8 @@ set(LINK_LIBS avogadro)
  22. set(PLUGIN_LABEL extensions)
  23. set(PLUGIN_TARGET extensions)
  24. +add_definitions(-DEIGEN2_SUPPORT_STAGE20_RESOLVE_API_CONFLICTS -std=gnu++11)
  25. +
  26. set(qtaimextension_SRCS
  27. qtaimextension.cpp
  28. # qtaimdialog.cpp
  29. --- avogadro-1.1.1/libavogadro/src/extensions/surfaces/openqube/CMakeLists.txt.omv~ 2014-01-30 13:59:05.889441500 +0100
  30. +++ avogadro-1.1.1/libavogadro/src/extensions/surfaces/openqube/CMakeLists.txt 2014-01-30 13:59:08.832774688 +0100
  31. @@ -1,5 +1,5 @@
  32. find_package(Qt4 4.6 REQUIRED)
  33. -find_package(Eigen2 REQUIRED)
  34. +find_package(Eigen3 REQUIRED)
  35. include_directories(${QT_INCLUDE_DIR} ${EIGEN2_INCLUDE_DIR})
  36. --- avogadro-1.1.1/cmake/modules/AvogadroUse.cmake.orig 2014-10-13 20:13:59.909828034 +0100
  37. +++ avogadro-1.1.1/cmake/modules/AvogadroUse.cmake 2014-10-13 20:15:09.492822908 +0100
  38. @@ -12,7 +12,7 @@
  39. # Add the Avogadro modules directory to the CMake module path
  40. set(CMAKE_MODULE_PATH ${Avogadro_PLUGIN_DIR}/cmake ${CMAKE_MODULE_PATH})
  41. -find_package(Eigen2 REQUIRED)
  42. +find_package(Eigen3 REQUIRED)
  43. include_directories(${EIGEN2_INCLUDE_DIR})
  44. if(Avogadro_ENABLE_GLSL)
  45. find_package(GLEW)