fix_cmake-find-package.diff 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --- avogadrolibs-1.95.1/cmake/FindSpglib.cmake 2022-17-04 15:40:00.000000000 +0200
  2. +++ avogadrolibs-1.95.1-fixed/cmake/FindSpglib.cmake 2022-17-04 15:40:01.000000000 +0200
  3. @@ -12,7 +12,7 @@
  4. set(SPGLIB_INCLUDE_DIRS "${SPGLIB_INCLUDE_DIR}")
  5. include(FindPackageHandleStandardArgs)
  6. -find_package_handle_standard_args(SPGLIB DEFAULT_MSG SPGLIB_INCLUDE_DIR
  7. +find_package_handle_standard_args(Spglib DEFAULT_MSG SPGLIB_INCLUDE_DIR
  8. SPGLIB_LIBRARY)
  9. mark_as_advanced(SPGLIB_INCLUDE_DIR SPGLIB_LIBRARY)
  10. --- avogadrolibs-1.95.1/cmake/FindLibArchive.cmake 2022-17-04 15:50:00.000000000 +0200
  11. +++ avogadrolibs-1.95.1-fixed/cmake/FindLibArchive.cmake 2022-17-04 15:50:01.000000000 +0200
  12. @@ -14,7 +14,7 @@
  13. set(LIBARCHIVE_LIBRARIES "${LIBARCHIVE_LIBRARY}")
  14. include(FindPackageHandleStandardArgs)
  15. -find_package_handle_standard_args(LIBARCHIVE DEFAULT_MSG LIBARCHIVE_INCLUDE_DIR
  16. +find_package_handle_standard_args(LibArchive DEFAULT_MSG LIBARCHIVE_INCLUDE_DIR
  17. LIBARCHIVE_LIBRARY)
  18. mark_as_advanced(LIBARCHIVE_INCLUDE_DIR LIBARCHIVE_LIBRARY)
  19. --- avogadrolibs-1.95.1/python/CMakeLists.txt 2022-17-04 16:00:00.000000000 +0200
  20. +++ avogadrolibs-1.95.1-fixed/python/CMakeLists.txt 2022-17-04 16:00:01.000000000 +0200
  21. @@ -1,7 +1,7 @@
  22. find_package(PythonInterp 3 REQUIRED)
  23. find_package(PythonLibs 3 REQUIRED)
  24. set(PYBIND11_PYTHON_VERSION "3" CACHE STRING "")
  25. -set(PYBIND11_CPP_STANDARD "-std=c++11" CACHE STRING "")
  26. +set(CMAKE_CXX_STANDARD 14 CACHE STRING "")
  27. find_package(pybind11 REQUIRED)
  28. find_package(Eigen3 REQUIRED)
  29. --- avogadrolibs-1.95.1/avogadro/qtplugins/quantuminput/CMakeLists.txt 2022-18-04 19:00:00.000000000 +0200
  30. +++ avogadrolibs-1.95.1-fixed/avogadro/qtplugins/quantuminput/CMakeLists.txt 2022-18-04 19:00:01.000000000 +0200
  31. @@ -41,3 +41,5 @@
  32. else()
  33. + if(USE_PYTHON)
  34. - message("Avogadro Generators not found at ${_prefix}!")
  35. + message("Avogadro Generators not found at ${_prefix}!")
  36. + endif()
  37. endif()