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

@ -38,4 +38,4 @@ if(Tox_DNS_INCLUDE_DIR AND Tox_DNS_LIBRARY)
endif() endif()
include(FindPackageHandleStandardArgs) include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Tox HANDLE_COMPONENTS REQUIRED_VARS Tox_INCLUDE_DIRS Tox_LIBRARIES) find_package_handle_standard_args(Tox FOUND_VAR Tox_FOUND REQUIRED_VARS Tox_INCLUDE_DIRS Tox_LIBRARIES HANDLE_COMPONENTS)

View File

@ -1,4 +1,4 @@
find_path(WeeChat_INCLUDE_DIRS weechat/weechat-plugin.h) find_path(WeeChat_INCLUDE_DIRS weechat/weechat-plugin.h)
include(FindPackageHandleStandardArgs) 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)