summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Cmarada <mcmarada@cisco.com>2019-02-12 19:25:04 +0100
committerMichal Cmarada <mcmarada@cisco.com>2019-02-12 18:26:01 +0000
commit6e15d1ea806ea40ba6183c9ff57f58d8675df3c3 (patch)
tree39db3691dd26f95e749ec5e657859ba103c2b1db
parente0719020618edb3c9276213c256dcf65ecad6a91 (diff)
enable setting of JAVA_HOME for cmake
Change-Id: I4ce9e8527f33d4dc5e63496ac72acc7b69c4f4bc Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
-rw-r--r--CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3b81f72..de66d85 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -93,10 +93,10 @@ macro(subdirlist dirlist dirpath)
endforeach ()
endmacro()
-#list(APPEND dirlist $ENV{JAVA_HOME})
-#subdirlist(dirlist /usr/lib/jvm)
-#subdirlist(dirlist /usr/lib64/jvm)
-#
+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)