summaryrefslogtreecommitdiff
path: root/CMake/FindPowerShell.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'CMake/FindPowerShell.cmake')
-rw-r--r--CMake/FindPowerShell.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMake/FindPowerShell.cmake b/CMake/FindPowerShell.cmake
new file mode 100644
index 0000000000..c0e92a269e
--- /dev/null
+++ b/CMake/FindPowerShell.cmake
@@ -0,0 +1,4 @@
+find_program(POWERSHELL_EXE NAMES powershell)
+
+INCLUDE(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(PowerShell DEFAULT_MSG POWERSHELL_EXE)