commit | 8ed868606ddae005b4a50319bdc291b8df5b525a | [log] [tgz] |
---|---|---|
author | Cristian Adam <cristian.adam@gmail.com> | Mon Aug 05 23:46:54 2019 +0200 |
committer | Brad King <brad.king@kitware.com> | Tue Aug 06 09:36:36 2019 -0400 |
tree | 3733d5eb155f5497f8c05e475f985eace9b46b69 | |
parent | f43a7d76c737c5bb9b903a2b1be5186c081ec21e [diff] |
find_package: Fix prefer-config mode to not fail on missing optional package When `CMAKE_FIND_PACKAGE_PREFER_CONFIG` mode was set to `ON`, failure to find a package was fatal even if it was not `REQUIRED`. Fix this and add a test case. Fixes: #19557