From 02ef284140f73fc865e778936cdfa1556a32dfe6 Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Mon, 13 Apr 2020 21:54:28 +0200 Subject: [PATCH] CMake: fix another Windows specific warning reported by CMake 3.17 Newer version of CMake complains with warnings like the one below: The package name passed to `find_package_handle_standard_args` (POWERSHELL) does not match the name of the calling package (PowerShell). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Change the capitalization of the variables to match the filename. Change-Id: I5bd763add92e9e279f8e28f31576acb5b9ea7776 Reviewed-on: https://code.wireshark.org/review/36833 Petri-Dish: Pascal Quantin Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin --- cmake/modules/FindPowerShell.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/FindPowerShell.cmake b/cmake/modules/FindPowerShell.cmake index 9e751545d7..d2befe22d2 100644 --- a/cmake/modules/FindPowerShell.cmake +++ b/cmake/modules/FindPowerShell.cmake @@ -14,7 +14,7 @@ find_program(POWERSHELL_EXECUTABLE ) INCLUDE(FindPackageHandleStandardArgs) -find_package_handle_standard_args(POWERSHELL DEFAULT_MSG POWERSHELL_EXECUTABLE) +find_package_handle_standard_args(PowerShell DEFAULT_MSG POWERSHELL_EXECUTABLE) set(_powershell_command "POWERSHELL_COMMAND-NOTFOUND") if(POWERSHELL_FOUND)