The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15207 
====================================================================== 
Reported By:                Stepan Schejbal
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15207
Category:                   Modules
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-10-14 10:31 EDT
Last Modified:              2014-10-14 10:31 EDT
====================================================================== 
Summary:                    FindJNI does not work when compiling 32-bit target
on 64-bit host
Description: 
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 http://public.kitware.com/Bug/view.php?id=9611.

Steps to Reproduce: 
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...
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-10-14 10:31 Stepan SchejbalNew Issue                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to