Make CMake find modules backwards-compatible.

This commit is contained in:
Håvard Pettersson 2015-09-02 22:53:59 +02:00
parent 5094627e27
commit ee9c069257
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
find_path(WeeChat_INCLUDE_DIRS weechat/weechat-plugin.h)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(WeeChat REQUIRED_VARS WeeChat_INCLUDE_DIRS)
find_package_handle_standard_args(WeeChat FOUND_VAR WeeChat_FOUND REQUIRED_VARS WeeChat_INCLUDE_DIRS)