From 909eaeb7156668e38ee24057a7d67dfa374c2693 Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Thu, 9 Apr 2015 14:27:15 -0500 Subject: [PATCH] make cmake less stupid --- cmake/FindJNI.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/FindJNI.cmake b/cmake/FindJNI.cmake index b990be8f..9b0162fb 100644 --- a/cmake/FindJNI.cmake +++ b/cmake/FindJNI.cmake @@ -26,6 +26,10 @@ # (To distribute this file outside of CMake, substitute the full # License text for the above reference.) +# hacky workaround but since we always use these paths...who cares? +SET(JAVA_INCLUDE_PATH2 "$ENV{JAVA_HOME}/include") +SET(JAVA_INCLUDE_PATH "$ENV{JAVA_HOME}/include") + # Expand {libarch} occurences to java_libarch subdirectory(-ies) and set ${_var} macro(java_append_library_directories _var) # Determine java arch-specific library subdir