mirror of
https://github.com/reactos/CMake.git
synced 2024-12-02 00:26:18 +00:00
Merge topic 'FindJava-jdk-10'
3c08d207
FindJava: ignore javah for JDK 10, it has been removed
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1637
This commit is contained in:
commit
c81ace7ab7
@ -237,10 +237,18 @@ if(Java_FIND_COMPONENTS)
|
||||
endif()
|
||||
elseif(component STREQUAL "Development")
|
||||
list(APPEND _JAVA_REQUIRED_VARS Java_JAVA_EXECUTABLE Java_JAVAC_EXECUTABLE
|
||||
Java_JAVAH_EXECUTABLE Java_JAVADOC_EXECUTABLE)
|
||||
if(Java_JAVA_EXECUTABLE AND Java_JAVAC_EXECUTABLE
|
||||
AND Java_JAVAH_EXECUTABLE AND Java_JAVADOC_EXECUTABLE)
|
||||
set(Java_Development_FOUND TRUE)
|
||||
Java_JAVADOC_EXECUTABLE)
|
||||
if(Java_VERSION VERSION_LESS "1.10")
|
||||
list(APPEND _JAVA_REQUIRED_VARS Java_JAVAH_EXECUTABLE)
|
||||
if(Java_JAVA_EXECUTABLE AND Java_JAVAC_EXECUTABLE
|
||||
AND Java_JAVAH_EXECUTABLE AND Java_JAVADOC_EXECUTABLE)
|
||||
set(Java_Development_FOUND TRUE)
|
||||
endif()
|
||||
else()
|
||||
if(Java_JAVA_EXECUTABLE AND Java_JAVAC_EXECUTABLE
|
||||
AND Java_JAVADOC_EXECUTABLE)
|
||||
set(Java_Development_FOUND TRUE)
|
||||
endif()
|
||||
endif()
|
||||
elseif(component STREQUAL "IdlJ")
|
||||
list(APPEND _JAVA_REQUIRED_VARS Java_IDLJ_EXECUTABLE)
|
||||
@ -268,11 +276,19 @@ if(Java_FIND_COMPONENTS)
|
||||
endif()
|
||||
else()
|
||||
# Check for Development
|
||||
find_package_handle_standard_args(Java
|
||||
REQUIRED_VARS Java_JAVA_EXECUTABLE Java_JAR_EXECUTABLE Java_JAVAC_EXECUTABLE
|
||||
Java_JAVAH_EXECUTABLE Java_JAVADOC_EXECUTABLE
|
||||
VERSION_VAR Java_VERSION_STRING
|
||||
)
|
||||
if(Java_VERSION VERSION_LESS "1.10")
|
||||
find_package_handle_standard_args(Java
|
||||
REQUIRED_VARS Java_JAVA_EXECUTABLE Java_JAR_EXECUTABLE Java_JAVAC_EXECUTABLE
|
||||
Java_JAVAH_EXECUTABLE Java_JAVADOC_EXECUTABLE
|
||||
VERSION_VAR Java_VERSION_STRING
|
||||
)
|
||||
else()
|
||||
find_package_handle_standard_args(Java
|
||||
REQUIRED_VARS Java_JAVA_EXECUTABLE Java_JAR_EXECUTABLE Java_JAVAC_EXECUTABLE
|
||||
Java_JAVADOC_EXECUTABLE
|
||||
VERSION_VAR Java_VERSION_STRING
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user