From ac59d51724550dca1da49ea0ba953ddc046bd860 Mon Sep 17 00:00:00 2001 From: Ryan Foster Date: Thu, 20 May 2021 16:49:40 -0400 Subject: [PATCH] cmake: Fix Detours package name CMake warning Since CMake 3.17, find_package_handle_standard_args (FPHSA) will emit a warning if the package name in the caller and in FPHSA do not match. This normalizes the name "Detours" in CMake calls to prevent this warning. --- cmake/Modules/FindDetours.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Modules/FindDetours.cmake b/cmake/Modules/FindDetours.cmake index 21aeccb8e..93aaaa78f 100644 --- a/cmake/Modules/FindDetours.cmake +++ b/cmake/Modules/FindDetours.cmake @@ -59,7 +59,7 @@ find_library(DETOURS_LIB ../bin${_lib_suffix} ../bin) include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(DETOURS DEFAULT_MSG DETOURS_LIB DETOURS_INCLUDE_DIR) +find_package_handle_standard_args(Detours DEFAULT_MSG DETOURS_LIB DETOURS_INCLUDE_DIR) mark_as_advanced(DETOURS_INCLUDE_DIR DETOURS_LIB) if(DETOURS_FOUND)