solid java testing
This commit is contained in:
parent
19ec491d22
commit
14d8b7904f
@ -1,6 +1,10 @@
|
|||||||
|
|
||||||
|
option(WITH_JAVA "Try to use Java (currently Java 6,7,8)" ON)
|
||||||
|
|
||||||
|
if (WITH_JAVA)
|
||||||
#detect java setup, as it is shared between different installations.
|
#detect java setup, as it is shared between different installations.
|
||||||
|
|
||||||
find_package(Java COMPONENTS Runtime Development)
|
find_package(Java 1.8 COMPONENTS Runtime Development)
|
||||||
# find_package(Java COMPONENTS Development)
|
# find_package(Java COMPONENTS Development)
|
||||||
# find_package(Java COMPONENTS Runtime)
|
# find_package(Java COMPONENTS Runtime)
|
||||||
#find_package(JavaLibs)
|
#find_package(JavaLibs)
|
||||||
@ -49,3 +53,5 @@ endif (JNI_FOUND)
|
|||||||
|
|
||||||
|
|
||||||
endif (Java_Development_FOUND)
|
endif (Java_Development_FOUND)
|
||||||
|
endif(WITH_JAVA)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user