Hi, Just checked the repo of cmake and it turns out that FindJNI.cmake is available even before cmake 2.4. I think it makes sense to file a bug to replace it to the standard cmake module. Can you please file a jira for this?
Regards, Haohui On Fri, May 15, 2015 at 5:22 PM, Alan Burlison <[email protected]> wrote: > A question: Why does hadoop-common-project/hadoop-common/src/CMakeLists.txt > use JNIFlags.cmake in the same directory to set things up for JNI > compilation rather than FindJNI.cmake, which comes as a standard cmake > module? The checks in JNIFlags.cmake make several assumptions that I believe > are only correct on Linux whereas I'd expect FindJNI.cmake to be more > platform-independent. > > If I'm reading JNIFlags.cmake properly it only exports JNI_INCLUDE_DIRS and > JNI_LIBRARIES, both of which appear to also be exported by FindJNI.cmake. > > Looking for guidance... > > -- > Alan Burlison > --
