summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt16
1 files changed, 8 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index de66d85..a58d788 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -97,14 +97,14 @@ list(APPEND dirlist $ENV{JAVA_HOME})
subdirlist(dirlist /usr/lib/jvm)
subdirlist(dirlist /usr/lib64/jvm)
-#unset(JAVA_HOME_SET)
-#find_path(JAVA_HOME_SET NAMES include/jni.h PATHS ${dirlist})
-#if (NOT JAVA_HOME_SET)
-# message("JAVA_HOME is not found")
-#else()
-# message("JAVA HOME: ${JAVA_HOME}")
-# set(ENV{JAVA_HOME} "${JAVA_HOME_SET}")
-#endif()
+unset(JAVA_HOME_SET)
+find_path(JAVA_HOME_SET NAMES include/jni.h PATHS ${dirlist})
+if (NOT JAVA_HOME_SET)
+ message("JAVA_HOME is not found")
+else()
+ message("JAVA HOME: ${JAVA_HOME}")
+ set(ENV{JAVA_HOME} "${JAVA_HOME_SET}")
+endif()
message("\nJAVA:")
message(" JAVA_HOME: $ENV{JAVA_HOME}")