Package: cmake
Version: 2.6.0-5
Severity: important
Tags: upstream

Hi,

AFAIUI by reading /usr/share/cmake-2.6/Modules/FindwxWidgets.cmake it
isn't possible:
 - to specify which wx version should be found,
 - or to check which wx version has been found,
 - or to specify which wx-config program to run.

That means that one has no control over which version is being picked
up, since wx-config is handled by alternatives, which is why I consider
this as an important bug. Resorting to Build-Conflicts isn't a nice
solution IMHO, and can't really think of another way to solve this at
the moment.

I'd then suggest:
 - providing with an additional _FOUND_VERSION or _FOUND_RELEASE
   variable so that one can at least check which version has been picked
   up. That might be done by calling using $(wx-config --release).
 - supporting forcing the version to something user-specified. That can
   be achieved by using the wx-config --version parameter. Examples for
   that below.
 - if the previous one isn't acceptable (although I found it quite
   elegant), it'd be nice to be able to specifying a PATH for wx-config,
   so that one can determine it in debian/rules, and inject it in a
   CMakeLists.txt file.

Examples of --version use:
| [EMAIL PROTECTED]:~$ wx-config --version
| 2.6.3
| [EMAIL PROTECTED]:~$ wx-config --release
| 2.6
| [EMAIL PROTECTED]:~$ wx-config --version=2.6 --version
| 2.6.3
| [EMAIL PROTECTED]:~$ wx-config --version=2.6 --release
| 2.6
| [EMAIL PROTECTED]:~$ wx-config --version=2.8 --version
| 2.8.7
| [EMAIL PROTECTED]:~$ wx-config --version=2.8 --release
| 2.8

Thanks for considering.

Mraw,
KiBi.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to