MantisBT - CMake
View Issue Details
0013554CMakeCMakepublic2012-09-21 11:242016-06-10 14:31
Stephen Kelly 
Alex Neundorf 
normalminoralways
closedmoved 
 
 
0013554: cmake --find-package should accept version arguments

If I have multiple versions of a package installed, I can't specify that I want one of version greater than 5.3, for example.

$ cmake --find-package -DNAME=Qt5Core \
                       -DCOMPILER_ID=GNU \
                       -DLANGUAGE=CXX \
                       -DMODE=LINK
-rdynamic /home/stephen/dev/prefix/qtbase/lib/libQtCore.so.5.0.0 -Wl,-rpath,/home/stephen/dev/prefix/qtbase/lib
No tags attached.
child of 0014676closed Alex Neundorf cmake --find-package summary ticket 
Issue History
2012-09-21 11:24Stephen KellyNew Issue
2012-09-21 11:24Stephen KellyStatusnew => assigned
2012-09-21 11:24Stephen KellyAssigned To => Alex Neundorf
2012-11-03 14:01Alex NeundorfNote Added: 0031402
2012-11-03 14:01Alex NeundorfStatusassigned => backlog
2013-04-10 14:35Alex NeundorfNote Added: 0032798
2014-01-01 12:21Alex NeundorfRelationship addedchild of 0014676
2016-06-10 14:28Kitware RobotNote Added: 0042124
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0031402)
Alex Neundorf   
2012-11-03 14:01   
Maybe later...
(0032798)
Alex Neundorf   
2013-04-10 14:35   
I consider this still experimental.
Currently in this mode cmake simply does a
find_package(ThePackage QUIET)

This will fail if the Find-module relies e.g. on try-compile().

I'm thinking about restricting this to Config-mode. Those files should not need try_compile()/ or try_run().

What do you think ?
(0042124)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.