summaryrefslogtreecommitdiffstats
path: root/src/fmt/support/cmake/FindSetEnv.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/fmt/support/cmake/FindSetEnv.cmake')
-rw-r--r--src/fmt/support/cmake/FindSetEnv.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fmt/support/cmake/FindSetEnv.cmake b/src/fmt/support/cmake/FindSetEnv.cmake
new file mode 100644
index 000000000..4e2da5408
--- /dev/null
+++ b/src/fmt/support/cmake/FindSetEnv.cmake
@@ -0,0 +1,7 @@
+# A CMake script to find SetEnv.cmd.
+
+find_program(WINSDK_SETENV NAMES SetEnv.cmd
+ PATHS "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows;CurrentInstallFolder]/bin")
+if (WINSDK_SETENV AND PRINT_PATH)
+ execute_process(COMMAND ${CMAKE_COMMAND} -E echo "${WINSDK_SETENV}")
+endif ()