Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0:Ports
Qross
Qrosspython-cmake3.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Qrosspython-cmake3.patch of Package Qross
diff --git a/src/bindings/python/qrosspython/CMakeLists.txt b/src/bindings/python/qrosspython/CMakeLists.txt index 5bd5b73..e0a0e68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,8 +5,12 @@ find_package(Qt4 REQUIRED) set(QT_USE_QTTEST TRUE) include(${QT_USE_FILE}) -set (PythonLibs_FIND_VERSION 2.7) -find_package(PythonLibs REQUIRED) +if (${CMAKE_MAJOR_VERSION} EQUAL 2) + set (PythonLibs_FIND_VERSION 2.7) + find_package(PythonLibs REQUIRED) +else () + find_package(PythonLibs "2.7" REQUIRED) +endif () include_directories( ${PYTHON_INCLUDE_PATH}
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor