summaryrefslogtreecommitdiffstats
path: root/cmake/FindJNI.cmake
blob: b2c6f849c874f306335e9d1a32f84d472f2e5566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if(JAVA_AWT_LIBRARY AND JAVA_INCLUDE_PATH)
  set(JNI_FOUND TRUE)
  return()
endif()
if(DEFINED JAVA_AWT_LIBRARY)
  set(JNI_FOUND FALSE)
  return()
endif()

set(orig_CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH})
unset(CMAKE_MODULE_PATH)
include(FindJNI)
set(CMAKE_MODULE_PATH ${orig_CMAKE_MODULE_PATH})