[cmake-developers] [PATCH 0/5] IMPORTED targets for some Find modules

Philipp Möller bootsarehax at gmail.com
Fri Jun 20 17:00:56 EDT 2014


To simplify exporting targets I added IMPORTED targets to some of the
Find modules.

Unfortunately targets behave differently than variables and can give
different results when multiple find_package calls with different
hints or options are made. There could be possible work-arounds
(e.g. versioned namespaces), but I opted for the simplest solution and
the use-case seems unusual to me.

Philipp Möller (5):
  FindZLIB.cmake: Add imported target and documentation
  FindGLEW.cmake: Add imported target and documentation
  FindX11.cmake: fix documentation conversion error
  FindGLUT.cmake: Add imported targets and documentation
  FindBoost.cmake: Add Boost::boost and Boost::<C> targets and
    documentation

 Modules/FindBoost.cmake | 52 +++++++++++++++++++++++++++++++++-
 Modules/FindGLEW.cmake  | 16 +++++++++++
 Modules/FindGLUT.cmake  | 58 +++++++++++++++++++++++++++++++++++++-
 Modules/FindX11.cmake   | 75 ++++++++++++++++++++++++-------------------------
 Modules/FindZLIB.cmake  | 31 ++++++++++++++------
 5 files changed, 183 insertions(+), 49 deletions(-)

-- 
2.0.0


More information about the cmake-developers mailing list