summaryrefslogtreecommitdiffstats
path: root/Modules/FindJNI.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2019-10-01 10:44:26 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2019-10-02 12:47:11 (GMT)
commit3d025939868a9722e889e3b4361b56d4c4138025 (patch)
tree0d147d669382ebd75a65561b089d327509d46833 /Modules/FindJNI.cmake
parent14ac253af716432d20380d155131fa6fd6d03400 (diff)
downloadCMake-3d025939868a9722e889e3b4361b56d4c4138025.zip
CMake-3d025939868a9722e889e3b4361b56d4c4138025.tar.gz
CMake-3d025939868a9722e889e3b4361b56d4c4138025.tar.bz2
FindJava: ensure all versions can be found
Fixes: #19765
Diffstat (limited to 'Modules/FindJNI.cmake')
-rw-r--r--Modules/FindJNI.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindJNI.cmake b/Modules/FindJNI.cmake
index 237ea96..3a5bd31 100644
--- a/Modules/FindJNI.cmake
+++ b/Modules/FindJNI.cmake
@@ -143,7 +143,7 @@ endif()
if (WIN32)
set (_JNI_HINTS)
- execute_process(COMMAND REG QUERY HKLM\\SOFTWARE\\JavaSoft\\JDK /f "." /k
+ execute_process(COMMAND REG QUERY HKLM\\SOFTWARE\\JavaSoft\\JDK
RESULT_VARIABLE _JNI_RESULT
OUTPUT_VARIABLE _JNI_VERSIONS
ERROR_QUIET)