MantisBT - CMake
View Issue Details
0015207CMakeModulespublic2014-10-14 10:312016-06-10 14:31
Stepan Schejbal 
Kitware Robot 
normalminoralways
closedmoved 
linux
CMake 2.8.11.2 
 
0015207: FindJNI does not work when compiling 32-bit target on 64-bit host
When compiling 32-bit linux target using "-m32", FindJNI breaks, because it is based on CMAKE_SYSTEM_PROCESSOR which does not match the target architecture. This is related to issue 0009611.
find_package(JNI REQUIRED)

export CC=gcc-4.8
export CXX=g++-4.8
export JAVA_HOME=/opt/jdk1.7.0_55-i586
export CFLAGS=-m32
export CXXFLAGS=-m32
export LDFALGS=-m32
cmake...
No tags attached.
Issue History
2014-10-14 10:31Stepan SchejbalNew Issue
2016-06-10 14:29Kitware RobotNote Added: 0042647
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042647)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.