summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-05-08 12:38:16 (GMT)
committerBrad King <brad.king@kitware.com>2018-05-08 12:38:25 (GMT)
commit6a95a097d9bcf0e931011704575a5260ced48911 (patch)
tree44e8bdf336f2e426966c1807b745b38126b00ea0 /Modules
parent5089d950c314a1923c05ee6bed43d64fc4f7e5cf (diff)
parentb4e156931511777ffb1b512a6b21e88b02d6bd43 (diff)
downloadCMake-6a95a097d9bcf0e931011704575a5260ced48911.zip
CMake-6a95a097d9bcf0e931011704575a5260ced48911.tar.gz
CMake-6a95a097d9bcf0e931011704575a5260ced48911.tar.bz2
Merge branch 'java-new-packaging-fixes' into release-3.11
Merge-request: !2042
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindJNI.cmake4
-rw-r--r--Modules/FindJava.cmake2
2 files changed, 3 insertions, 3 deletions
diff --git a/Modules/FindJNI.cmake b/Modules/FindJNI.cmake
index ff8d353..4913e05 100644
--- a/Modules/FindJNI.cmake
+++ b/Modules/FindJNI.cmake
@@ -128,7 +128,7 @@ if (WIN32)
OUTPUT_VARIABLE _JNI_VERSIONS
ERROR_QUIET)
if (NOT _JNI_RESULT)
- string (REGEX MATCHALL "HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\JavaSoft\\\\JDK\\\\[0-9\.]+" _JNI_VERSIONS "${_JNI_VERSIONS}")
+ string (REGEX MATCHALL "HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\JavaSoft\\\\JDK\\\\[0-9.]+" _JNI_VERSIONS "${_JNI_VERSIONS}")
if (_JNI_VERSIONS)
# sort versions. Most recent first
## handle version 9 apart from other versions to get correct ordering
@@ -141,7 +141,7 @@ if (WIN32)
list (REVERSE _JNI_V9)
list (APPEND _JNI_VERSIONS ${_JNI_V9})
foreach (_JNI_HINT IN LISTS _JNI_VERSIONS)
- list(APPEND _JNI_HINTS "[${_JNI_HINT}\\MSI;INSTALLDIR]")
+ list(APPEND _JNI_HINTS "[${_JNI_HINT};JavaHome]")
endforeach()
endif()
endif()
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()