[cmake-developers] [Patch] FindPkgConfig: optionally create imported target for the found libraries
Brad King
brad.king at kitware.com
Thu May 12 09:53:06 EDT 2016
On 05/12/2016 09:34 AM, Rolf Eike Beer wrote:
> find_library(${_prefix}-${CMAKE_MATCH_1}
> NAMES ${CMAKE_MATCH_1}
> ${_find_opts})
> list(APPEND _libs "${${_prefix}-${CMAKE_MATCH_1}}")
Generally I try to store the CMAKE_MATCH_ values in other variables
as soon as possible and then use those other variables. Otherwise
refactoring may cause their values to change and break existing logic.
Thanks,
-Brad
More information about the cmake-developers
mailing list