From 38ca6c2093969f5588e477e2ee93a1f35e3e31e6 Mon Sep 17 00:00:00 2001 From: Kai Germaschewski Date: Wed, 30 Sep 2020 21:09:29 -0400 Subject: [PATCH] cmake: print status message if Thrust is found --- thrust/cmake/thrust-config.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/thrust/cmake/thrust-config.cmake b/thrust/cmake/thrust-config.cmake index 467579d1d..eecc05e2f 100644 --- a/thrust/cmake/thrust-config.cmake +++ b/thrust/cmake/thrust-config.cmake @@ -650,3 +650,9 @@ foreach(component ${${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS}) endforeach() thrust_update_system_found_flags() + +include(FindPackageHandleStandardArgs) +if (NOT Thrust_CONFIG) + set(Thrust_CONFIG "${CMAKE_CURRENT_LIST_FILE}") +endif() +find_package_handle_standard_args(Thrust CONFIG_MODE)