handle no java
This commit is contained in:
parent
e4e59dedf7
commit
a448e25d8d
@ -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)
|
||||
|
Reference in New Issue
Block a user