diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2018-05-05 13:45:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-05-07 13:40:55 (GMT) |
commit | b4e156931511777ffb1b512a6b21e88b02d6bd43 (patch) | |
tree | ba233b0429ecd531ec7abc5a01221d2f4aaa7290 /Modules/FindJava.cmake | |
parent | 1013560a6a7c34d7f268eacf12ffdb4874a70c8b (diff) | |
download | CMake-b4e156931511777ffb1b512a6b21e88b02d6bd43.zip CMake-b4e156931511777ffb1b512a6b21e88b02d6bd43.tar.gz CMake-b4e156931511777ffb1b512a6b21e88b02d6bd43.tar.bz2 |
FindJava, FindJNI: fix erroneous regex, enhance registry lookup
Diffstat (limited to 'Modules/FindJava.cmake')
-rw-r--r-- | Modules/FindJava.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindJava.cmake b/Modules/FindJava.cmake index 45bc254..306f35d 100644 --- a/Modules/FindJava.cmake +++ b/Modules/FindJava.cmake @@ -97,7 +97,7 @@ if (WIN32) list (REVERSE _JAVA_V9) list (APPEND _JAVA_VERSIONS ${_JAVA_V9}) foreach (_JAVA_HINT IN LISTS _JAVA_VERSIONS) - list(APPEND _JAVA_HINTS "[${_JAVA_HINT}\\MSI;INSTALLDIR]/bin") + list(APPEND _JAVA_HINTS "[${_JAVA_HINT};JavaHome]/bin") endforeach() endif() endif() |