mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
4139712fe9
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
38 lines
1,020 B
Diff
38 lines
1,020 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -263,17 +263,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})
|
|
@@ -293,6 +282,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}
|