cmake: include find_package_handle_standard_args
authorJonas Schievink <jonasschievink@gmail.com>
Thu, 19 Oct 2017 16:36:31 +0000 (18:36 +0200)
committerGitHub <noreply@github.com>
Thu, 19 Oct 2017 16:36:31 +0000 (18:36 +0200)
The Findpigpio.cmake script doesn't work for me if this is missing (CMake 3.9.4 on Arch Linux ARM).

util/Findpigpio.cmake

index 6c94ee053b66c008fd822f5f09a6233b26933452..eebfbfe3481d8f5a67b03568c5e3aa277fd90751 100644 (file)
@@ -25,6 +25,7 @@ set(pigpio_INCLUDES     ${pigpio_INCLUDE_DIR})
 
 # Handle REQUIRED, QUIET, and version arguments 
 # and set the <packagename>_FOUND variable.
+include(FindPackageHandleStandardArgs)
 find_package_handle_standard_args(pigpio 
     DEFAULT_MSG 
     pigpio_INCLUDE_DIR pigpio_LIBRARY pigpiod_if_LIBRARY pigpiod_if2_LIBRARY)