Re: [CMake] FIND_LIBRARY and PATH_SUFFIXES: documentation or implementation bug

2011-03-25 Thread Marcel Loose
Hi Michael, > AFAICS, this is not true, see cmFindBase::AddPathSuffixes(). The paths > with the additional suffixes are searched first, but the paths without > the suffixes are considered, too. Look at the following CMakeLists.txt: > > CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR) > PROJECT(PATH

Re: [CMake] FIND_LIBRARY and PATH_SUFFIXES: documentation or implementation bug

2011-03-24 Thread Michael Hertling
On 03/24/2011 10:55 AM, Marcel Loose wrote: > Hi all, > > I stumbled upon this issue, while trying to track down why > FindPythonLibs finds the static library libpython2.6.a > in /usr/lib64/python2.6/config, instead of the shared library > libpython2.6.so in /usr/lib64 on my system. On my system,

[CMake] FIND_LIBRARY and PATH_SUFFIXES: documentation or implementation bug

2011-03-24 Thread Marcel Loose
Hi all, I stumbled upon this issue, while trying to track down why FindPythonLibs finds the static library libpython2.6.a in /usr/lib64/python2.6/config, instead of the shared library libpython2.6.so in /usr/lib64 on my system. The find module uses PATH_SUFFIXES python${_CURRENT_VERSION}/config,