diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2017-07-07 20:38:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-07-10 15:16:51 (GMT) |
commit | 3cf267cfbf740e8c8dc28f132fff5042c7201d3d (patch) | |
tree | 4aa405eedf5a7b0027758bb0fdd225c295680396 /Modules/FindOpenSceneGraph.cmake | |
parent | 2ef3527dfe03ac6e5f5c49d13d99b2304381b0a8 (diff) | |
download | CMake-3cf267cfbf740e8c8dc28f132fff5042c7201d3d.zip CMake-3cf267cfbf740e8c8dc28f132fff5042c7201d3d.tar.gz CMake-3cf267cfbf740e8c8dc28f132fff5042c7201d3d.tar.bz2 |
FindPkgConfig: do not always rerun pkg_check_modules() with 2 arguments
Since commit v3.8.0-rc1~47^2 (FindPkgConfig: Recheck pkg-config on
parameter change, 2017-01-17) calling `pkg_check_modules` always
re-runs. The problem is that if there are only 2 arguments passed to
`pkg_check_modules```, then `_module0` will be set and `ARGN` will be
empty. When this is written to cache it will be stored as just the
value of `_module0` without any semicolon, so on the next run this
doesn't match the expected value and the search is rerun.
Revise the logic to handle the case of empty `ARGN` separately.
Fixes: #17003
Diffstat (limited to 'Modules/FindOpenSceneGraph.cmake')
0 files changed, 0 insertions, 0 deletions