diff options
author | Steven A White <sawhite@ara.com> | 2021-06-16 05:01:02 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-16 12:25:34 (GMT) |
commit | d3274e0a6f7664d611b0a804c24add13b254e348 (patch) | |
tree | c0d4192e729a66de362143bb9965124a5d714a8e /Modules/FindLATEX.cmake | |
parent | 24399a8d840151ac8fe9241209ec013a5da412f5 (diff) | |
download | CMake-d3274e0a6f7664d611b0a804c24add13b254e348.zip CMake-d3274e0a6f7664d611b0a804c24add13b254e348.tar.gz CMake-d3274e0a6f7664d611b0a804c24add13b254e348.tar.bz2 |
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.
Diffstat (limited to 'Modules/FindLATEX.cmake')
-rw-r--r-- | Modules/FindLATEX.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/FindLATEX.cmake b/Modules/FindLATEX.cmake index 1e82651..9d7168e 100644 --- a/Modules/FindLATEX.cmake +++ b/Modules/FindLATEX.cmake @@ -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." ) |