From 2f4516ba1ab47301b0a50af8561e8f50fea116cc Mon Sep 17 00:00:00 2001 From: Chuck Atkins <chuck.atkins@kitware.com> Date: Tue, 11 Apr 2017 09:44:23 -0400 Subject: [PATCH] Fix FindDataMan.cmake missing include. FindPackageHandleStandardArgs needs to be included in every find module that the find_package_handle_standard_args is used. I was getting transitively included by othger find modules before but when all other options are turned off except DataMan, it's missing. This ensures it's always included before calling find_package_handle_standard_args. --- cmake/FindDataMan.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/FindDataMan.cmake b/cmake/FindDataMan.cmake index fd9ce61b5..cb4d2315a 100644 --- a/cmake/FindDataMan.cmake +++ b/cmake/FindDataMan.cmake @@ -51,6 +51,7 @@ if(NOT DataMan_FOUND) find_library(DataMan_LIBRARY dataman ${_DataMan_LIBRARY_HINT}) unset(_DataMan_LIBRARY_HINT) + include(FindPackageHandleStandardArgs) find_package_handle_standard_args(DataMan FOUND_VAR DataMan_FOUND REQUIRED_VARS -- GitLab