diff options
author | Daniel Bermond | 2019-11-24 17:44:28 +0000 |
---|---|---|
committer | Daniel Bermond | 2019-11-24 17:45:32 +0000 |
commit | f6a3a951ad1b3033e56105df563403711080e9d6 (patch) | |
tree | 4d1cf2903d1a442ae69bb8919133c5c545e96c0b /010-screencloud-1.5.0-fix-build.patch | |
parent | 39e26b8e979aa44eae69b0c55513af0e7d246a36 (diff) | |
download | aur-f6a3a951ad1b3033e56105df563403711080e9d6.tar.gz |
Fix build with python 3.8
Diffstat (limited to '010-screencloud-1.5.0-fix-build.patch')
-rw-r--r-- | 010-screencloud-1.5.0-fix-build.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/010-screencloud-1.5.0-fix-build.patch b/010-screencloud-1.5.0-fix-build.patch new file mode 100644 index 000000000000..e592ce627b37 --- /dev/null +++ b/010-screencloud-1.5.0-fix-build.patch @@ -0,0 +1,39 @@ +diff -Naurp a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt 2019-06-30 19:28:31.000000000 +0000 ++++ b/CMakeLists.txt 2019-11-24 17:39:45.214293986 +0000 +@@ -266,17 +266,6 @@ set(REQUIRED_LIBS ${REQUIRED_LIBS} + ${QUAZIP_LIBRARY} + ) + +-#Find Python +-if(PYTHON_USE_PYTHON3) +- find_package(PythonLibs 3.3 REQUIRED) +-else(PYTHON_USE_PYTHON3) +- find_package(PythonLibs 2.6 REQUIRED) +-endif(PYTHON_USE_PYTHON3) +-include_directories(${PYTHON_INCLUDE_DIR}) +-set(REQUIRED_LIBS ${REQUIRED_LIBS} +- ${PYTHON_LIBRARIES} +-) +- + #Find PythonQt + find_package(PythonQt REQUIRED) + include_directories(${PYTHONQT_INCLUDE_DIR}) +@@ -296,6 +285,17 @@ else(PYTHONQT_QTALL_FOUND) + message(STATUS "Using PythonQt_QtBindings (old) for Qt bindings.") + endif(PYTHONQT_QTALL_FOUND) + ++#Find Python ++if(PYTHON_USE_PYTHON3) ++ find_package(PythonLibs 3.3 REQUIRED) ++else(PYTHON_USE_PYTHON3) ++ find_package(PythonLibs 2.6 REQUIRED) ++endif(PYTHON_USE_PYTHON3) ++include_directories(${PYTHON_INCLUDE_DIR}) ++set(REQUIRED_LIBS ${REQUIRED_LIBS} ++ ${PYTHON_LIBRARIES} ++) ++ + #Platform specific libs + if(WIN32) + set(REQUIRED_LIBS ${REQUIRED_LIBS} |