mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00
FindLATEX: Search user-local MiKTeX locations
I've noticed the default installer for MikTex does not prompt for escalation. So, many installations I find do not have registry entries. This should cover finding it in the current defaults.
This commit is contained in:

committed by
Brad King

parent
24399a8d84
commit
d3274e0a6f
@@ -61,6 +61,10 @@ if (WIN32)
|
||||
# Try to find the MikTex binary path (look for its package manager).
|
||||
find_path(MIKTEX_BINARY_PATH mpm.exe
|
||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\MiK\\MiKTeX\\CurrentVersion\\MiKTeX;Install Root]/miktex/bin"
|
||||
"$ENV{LOCALAPPDATA}/Programs/MiKTeX/miktex/bin"
|
||||
"$ENV{LOCALAPPDATA}/Programs/MiKTeX/miktex/bin/x64"
|
||||
"$ENV{APPDATA}/Programs/MiKTeX/miktex/bin"
|
||||
"$ENV{APPDATA}/Programs/MiKTeX/miktex/bin/x64"
|
||||
DOC
|
||||
"Path to the MikTex binary directory."
|
||||
)
|
||||
|
Reference in New Issue
Block a user