handle no java

This commit is contained in:
Vítor Santos Costa 2016-02-24 02:08:18 +00:00
parent e4e59dedf7
commit a448e25d8d

View File

@ -1,19 +1,21 @@
#CHECK: JavaLibs
set (JPL_SOURCES
src/c/jpl.c)
find_package(Java COMPONENTS Runtime Development)
# find_package(Java COMPONENTS Development)
# find_package(Java COMPONENTS Runtime)
#find_package(JavaLibs)
set (JPL_SOURCES
src/c/jpl.c)
macro_log_feature (Java_Development_FOUND "Java"
"Use Java System"
"http://www.java.org" FALSE)
if (Java_Development_FOUND)
find_package(JNI)
if (Java_Development_FOUND AND JNI_FOUND)
include(UseJava)
#
@ -54,4 +56,4 @@ if (Java_Development_FOUND)
DESTINATION ${libpl}
)
endif (Java_Development_FOUND)
endif (Java_Development_FOUND AND JNI_FOUND)