diff options
author | Marc Chevrier <marc.chevrier@sap.com> | 2015-12-03 11:37:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-12-04 14:31:35 (GMT) |
commit | 4d4fcabdfd9ceb02d947f6631370f6091e1ed337 (patch) | |
tree | 32584dd3bc278992d128486c63f2b94f159c0391 /Modules/FindJNI.cmake | |
parent | 6f6897f1aef884963503d8068707cf27fa7d99e7 (diff) | |
download | CMake-4d4fcabdfd9ceb02d947f6631370f6091e1ed337.zip CMake-4d4fcabdfd9ceb02d947f6631370f6091e1ed337.tar.gz CMake-4d4fcabdfd9ceb02d947f6631370f6091e1ed337.tar.bz2 |
FindJNI: Add support for AIX java sdk
Diffstat (limited to 'Modules/FindJNI.cmake')
-rw-r--r-- | Modules/FindJNI.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/FindJNI.cmake b/Modules/FindJNI.cmake index cbe21d7..135038c 100644 --- a/Modules/FindJNI.cmake +++ b/Modules/FindJNI.cmake @@ -63,7 +63,7 @@ macro(java_append_library_directories _var) elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)64") set(_java_libarch "ppc64" "ppc") elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc|ppc)") - set(_java_libarch "ppc") + set(_java_libarch "ppc" "ppc64") elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^sparc") # Both flavours can run on the same processor set(_java_libarch "${CMAKE_SYSTEM_PROCESSOR}" "sparc" "sparcv9") @@ -271,7 +271,8 @@ find_path(JAVA_INCLUDE_PATH jni.h ${JAVA_AWT_INCLUDE_DIRECTORIES} ) -find_path(JAVA_INCLUDE_PATH2 jni_md.h +find_path(JAVA_INCLUDE_PATH2 NAMES jni_md.h jniport.h + PATHS ${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH}/darwin ${JAVA_INCLUDE_PATH}/win32 @@ -281,6 +282,7 @@ find_path(JAVA_INCLUDE_PATH2 jni_md.h ${JAVA_INCLUDE_PATH}/solaris ${JAVA_INCLUDE_PATH}/hp-ux ${JAVA_INCLUDE_PATH}/alpha + ${JAVA_INCLUDE_PATH}/aix ) find_path(JAVA_AWT_INCLUDE_PATH jawt.h |