[cmake-developers] [CMake 0015206]: add_jar() in UseJava.cmake uses wrong classpath seperator when cross-compiling under Windows

Mantis Bug Tracker mantis at public.kitware.com
Tue Oct 14 02:28:20 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15206 
====================================================================== 
Reported By:                Lorenz Witte
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15206
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-10-14 02:28 EDT
Last Modified:              2014-10-14 02:28 EDT
====================================================================== 
Summary:                    add_jar() in UseJava.cmake uses wrong classpath
seperator when cross-compiling under Windows
Description: 
The condition to use ";" as classpath separator includes a check for the switch
"WIN32" which is a target switch. When cross-compiling for a non-windows target,
this switch is not present and the separator defaults to ":".

I think it should rather check for "CMAKE_HOST_WIN32" instead.

Steps to Reproduce: 
Call add_jar() during a cross-compilation on a Windows host.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-10-14 02:28 Lorenz Witte   New Issue                                    
2014-10-14 02:28 Lorenz Witte   File Added:
0001-fixed-classpath-separator-on-WIN32-cross-compilation.patch                 
  
======================================================================




More information about the cmake-developers mailing list