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