summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKitsu <mail@kitsu.me>2017-03-03 07:25:37 (GMT)
committerBrad King <brad.king@kitware.com>2017-03-03 13:14:34 (GMT)
commitd0ada3e2183d3f80125795a3b13acafa7cc0c477 (patch)
tree6d8e309d8e7918e18f0baa955690857f87caf799
parent6cbad490c2fdbd9bdc67b406b9f2dcdc21e08ddb (diff)
downloadCMake-d0ada3e2183d3f80125795a3b13acafa7cc0c477.zip
CMake-d0ada3e2183d3f80125795a3b13acafa7cc0c477.tar.gz
CMake-d0ada3e2183d3f80125795a3b13acafa7cc0c477.tar.bz2
FindJNI: Add jvm paths for Arch Linux
-rw-r--r--Modules/FindJNI.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/FindJNI.cmake b/Modules/FindJNI.cmake
index 39e504f..cebba10 100644
--- a/Modules/FindJNI.cmake
+++ b/Modules/FindJNI.cmake
@@ -145,6 +145,9 @@ JAVA_APPEND_LIBRARY_DIRECTORIES(JAVA_AWT_LIBRARY_DIRECTORIES
/usr/lib/jvm/default-java/jre/lib/{libarch}
/usr/lib/jvm/default-java/jre/lib
/usr/lib/jvm/default-java/lib
+ # Arch Linux specific paths for default JVM
+ /usr/lib/jvm/default/jre/lib/{libarch}
+ /usr/lib/jvm/default/lib/{libarch}
# Ubuntu specific paths for default JVM
/usr/lib/jvm/java-8-openjdk-{libarch}/jre/lib/{libarch} # Ubuntu 15.10
/usr/lib/jvm/java-7-openjdk-{libarch}/jre/lib/{libarch} # Ubuntu 15.10
@@ -200,6 +203,8 @@ JAVA_APPEND_LIBRARY_DIRECTORIES(JAVA_AWT_INCLUDE_DIRECTORIES
/opt/sun-jdk-1.5.0.04/include
# Debian specific path for default JVM
/usr/lib/jvm/default-java/include
+ # Arch specific path for default JVM
+ /usr/lib/jvm/default/include
# OpenBSD specific path for default JVM
/usr/local/jdk-1.7.0/include
/usr/local/jdk-1.6.0/include