MantisBT - CMake
View Issue Details
0014830CMakeCMakepublic2014-03-24 16:362014-10-06 10:33
Peter Linnell 
 
normalmajoralways
closedno change required 
Linux openSUSE 12.3 or newer
 
 
0014830: FindPythonLibs regression in CMake 3.0
Scribus which has used CMake for a long time now, shows an issue with detecting Python libraries, which seems to be a regression. Commit: http://cmake.org/gitweb?p=cmake.git;a=blobdiff;f=Modules/FindPythonLibs.cmake;h=8356ed94d43d9ac1442a0d7a01954a71f221a2a0;hp=bffa9fb4fe90aee5787956645f1f212eb05edb4f;hb=afd4f7f0428f48c6a01eb828dd07e057048edc49;hpb=81aaad0c7357b50770284b7d87d04cedf8bc4eae [^]

Seems to have the commit which has changed.
https://build.opensuse.org/package/live_build_log/KDE:Unstable:Extra/scribus-unstable/openSUSE_Factory/x86_64 [^] Shows the build failure on openSUSE's build service.
No tags attached.
Issue History
2014-03-24 16:36Peter LinnellNew Issue
2014-03-24 16:42Brad KingAssigned To => Rolf Eike Beer
2014-03-24 16:42Brad KingStatusnew => assigned
2014-03-24 16:43Brad KingSummaryRegression in CMake 3.0 => FindPythonLibs regression in CMake 3.0
2014-03-24 16:44Brad KingNote Added: 0035493
2014-03-24 16:58Rolf Eike BeerNote Added: 0035494
2014-03-26 10:48Brad KingNote Added: 0035528
2014-03-26 10:48Brad KingAssigned ToRolf Eike Beer =>
2014-03-26 10:48Brad KingStatusassigned => resolved
2014-03-26 10:48Brad KingResolutionopen => no change required
2014-10-06 10:33Robert MaynardNote Added: 0036957
2014-10-06 10:33Robert MaynardStatusresolved => closed

Notes
(0035493)
Brad King   
2014-03-24 16:44   
Simpler link to commit linked in description:

 FindPython*: simplify version selection
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=afd4f7f0 [^]
(0035494)
Rolf Eike Beer   
2014-03-24 16:58   
#<< PYTHON
SET(PythonLibs_FIND_VERSION 2)
FIND_PACKAGE(PythonLibs REQUIRED)

If you fiddle with the version selection then set all required variables. Otherwise let CMake do it:

find_package(PythonLibs 2 REQUIRED)
(0035528)
Brad King   
2014-03-26 10:48   
Re 0014830:0035494: Yes, setting PythonLibs_FIND_VERSION manually is stepping on implementation details of the find_package command and is not supported. Passing the version request argument to find_package is the correct way to specify the version.
(0036957)
Robert Maynard   
2014-10-06 10:33   
Closing resolved issues that have not been updated in more than 4 months.