summaryrefslogtreecommitdiffstats
path: root/src/seastar/fmt/support/cmake/FindSetEnv.cmake
blob: 4e2da5408ac3c54975ff9acc7091ffdbb6c83b0d (plain)
1
2
3
4
5
6
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 ()